mirror of
https://github.com/minetest-mods/throwing_arrows.git
synced 2024-09-27 14:50:41 +02:00
Add a max_drop_level too capability for arrow, golden arrow and diamond arrow
This commit is contained in:
parent
db4b8da887
commit
33165dc0a4
3
init.lua
3
init.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user