mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
Added test for on_blast
This commit is contained in:
parent
4439c4e8b9
commit
dc72770307
6
rat.lua
6
rat.lua
@ -34,6 +34,12 @@ mobs:register_mob("mobs_animal:rat", {
|
|||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
print("rat pos", pos.x, pos.y, pos.z)
|
print("rat pos", pos.x, pos.y, pos.z)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_blast = function(obj, damage)
|
||||||
|
print ("--- damage is", damage)
|
||||||
|
-- return's do_damage, do_knockback and drops
|
||||||
|
return true, true, {"default:mese"}
|
||||||
|
end,
|
||||||
--]]
|
--]]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user