mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Disable digging for bow
This commit is contained in:
parent
25c9583ed2
commit
c2d950b7c2
1 changed files with 2 additions and 1 deletions
|
@ -108,9 +108,10 @@ The arrow speed and damage increase with the charge level:
|
||||||
inventory_image = "mcl_throwing_bow.png",
|
inventory_image = "mcl_throwing_bow.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
-- Trick to disable melee damage to entities.
|
-- Trick to disable melee damage to entities.
|
||||||
-- FIXME: The bows is still able to dig like the hand for some reason. :-(
|
|
||||||
-- Range not set to 0 (unlike the others) so it can be placed into item frames
|
-- Range not set to 0 (unlike the others) so it can be placed into item frames
|
||||||
range = 1,
|
range = 1,
|
||||||
|
-- Trick to disable digging as well
|
||||||
|
on_use = function() end,
|
||||||
on_place = powerup_function("mcl_throwing:bow_0"),
|
on_place = powerup_function("mcl_throwing:bow_0"),
|
||||||
on_secondary_use = powerup_function("mcl_throwing:bow_0"),
|
on_secondary_use = powerup_function("mcl_throwing:bow_0"),
|
||||||
groups = {weapon=1,weapon_ranged=1},
|
groups = {weapon=1,weapon_ranged=1},
|
||||||
|
|
Loading…
Reference in a new issue