1
0
Fork 0
MineClone2/mods/ENTITIES/mcl_mobs/api/mob_functions/environment.lua

13 lines
233 B
Lua
Raw Normal View History

-- default function when mobs are blown up with TNT
local do_tnt = function(obj, damage)
obj.object:punch(obj.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = damage},
}, nil)
return false, true, {}
end