Make TNT marker entity immortal
This commit is contained in:
parent
0efc1494ef
commit
56dc889cc3
@ -10,6 +10,9 @@ minetest.register_entity("tnttag:tnt_if_tagged", {
|
||||
textures = {"tnttag_tnt_top_burning.png", "tnttag_tnt_bottom.png", "tnttag_tnt_side.png", "tnttag_tnt_side.png", "tnttag_tnt_side.png", "tnttag_tnt_side.png"},
|
||||
},
|
||||
_timer = 0,
|
||||
on_activate = function(self)
|
||||
self.object:set_armor_groups({immortal=1})
|
||||
end,
|
||||
on_step = function(self, dtime, moveresult)
|
||||
if self._timer > .3 and self.object:get_attach() == nil then
|
||||
self.object:remove()
|
||||
|
Loading…
x
Reference in New Issue
Block a user