1
0
Fork 0

Disable digging for bow

This commit is contained in:
Wuzzy 2017-05-27 04:08:44 +02:00
parent 25c9583ed2
commit c2d950b7c2
1 changed files with 2 additions and 1 deletions

View File

@ -108,9 +108,10 @@ The arrow speed and damage increase with the charge level:
inventory_image = "mcl_throwing_bow.png",
stack_max = 1,
-- 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 = 1,
-- Trick to disable digging as well
on_use = function() end,
on_place = powerup_function("mcl_throwing:bow_0"),
on_secondary_use = powerup_function("mcl_throwing:bow_0"),
groups = {weapon=1,weapon_ranged=1},