Make TNT marker entity immortal

This commit is contained in:
Wuzzy 2023-08-08 13:34:44 +02:00
parent 0efc1494ef
commit 56dc889cc3

View File

@ -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()