1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 17:00:26 +01:00

Added test for on_blast

This commit is contained in:
TenPlus1 2016-05-01 10:44:20 +01:00
parent 4439c4e8b9
commit dc72770307

View File

@ -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,
--]] --]]
}) })