Added test for on_blast

This commit is contained in:
TenPlus1 2016-05-01 10:44:20 +01:00
parent 4439c4e8b9
commit dc72770307
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ mobs:register_mob("mobs_animal:rat", {
local pos = self.object:getpos()
print("rat pos", pos.x, pos.y, pos.z)
end,
on_blast = function(obj, damage)
print ("--- damage is", damage)
-- return's do_damage, do_knockback and drops
return true, true, {"default:mese"}
end,
--]]
})