mob_register.explosion_power = def.explosion_power
mob_register.tnt_timer = nil
mob_register.explosion_time = def.explosion_time
+mob_register.explosion_blink_color = def.explosion_blink_color or "white"
mob_register.custom_function_begin = def.custom_function_begin
mob_register.custom_function_end = def.custom_function_end
if self.tnt_mod_state == 0 then
self.object:set_texture_mod("")
else
- self.object:set_texture_mod("^[colorize:white:130")
+ self.object:set_texture_mod("^[colorize:"..self.explosion_blink_color..":130")
end
--print(self.object:get_texture_mod())
--self.object:set_texture_mod("^[colorize:red:130")