Add a max_drop_level too capability for arrow, golden arrow and diamond arrow

This commit is contained in:
upsilon 2019-08-29 18:17:49 +02:00
parent db4b8da887
commit 33165dc0a4
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ if get_setting("arrow") then
if object then if object then
object:punch(hitter, 1, { object:punch(hitter, 1, {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level = 1,
damage_groups = {fleshy = 3} damage_groups = {fleshy = 3}
}) })
elseif node then elseif node then
@ -86,6 +87,7 @@ if get_setting("golden_arrow") then
on_hit = function(self, pos, _, _, object, hitter) on_hit = function(self, pos, _, _, object, hitter)
object:punch(hitter, 1, { object:punch(hitter, 1, {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level = 1,
damage_groups = {fleshy = 5} damage_groups = {fleshy = 5}
}) })
end end
@ -104,6 +106,7 @@ if get_setting("diamond_arrow") then
on_hit = function(self, pos, _, _, object, hitter) on_hit = function(self, pos, _, _, object, hitter)
object:punch(hitter, 1, { object:punch(hitter, 1, {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level = 1,
damage_groups = {fleshy = 8} damage_groups = {fleshy = 8}
}) })
end end