summaryrefslogtreecommitdiff
path: root/rat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rat.lua')
-rw-r--r--rat.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/rat.lua b/rat.lua
index fc9e604..7af0ea7 100644
--- a/rat.lua
+++ b/rat.lua
@@ -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,
--]]
})