diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-01 10:44:20 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-01 10:44:20 +0100 |
commit | dc72770307d05d5858ebd4811cb828502cf005d5 (patch) | |
tree | 1c1da765f6c82a80556e55d5b9ba255aa74fb9c8 | |
parent | 4439c4e8b9783b0492441e39fce9d1faefe3c715 (diff) |
Added test for on_blast
-rw-r--r-- | rat.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, --]] }) |