+local minetest = minetest
--class
mobs = {}
mob_register.attack_type = def.attack_type
if def.attack_type == "explode" then
mob_register.tnt_tick_timer = 0
+ mob_register.explosion_type = def.explosion_type
end
mob_register.explosion_radius = def.explosion_radius
mob_register.explosion_power = def.explosion_power
mob_register.c_mob_data = def.c_mob_data
+mob_register.deactivating = false
+
+mob_register.on_fire = false
+
+mob_register.fire_table = def.fire_table
+
if def.pathfinds then
--mob_register.path = {}
mob_register.pathfinding_timer = 0
self.custom_function_begin(self,dtime)
end
- --self.collision_detection(self)
+ self.collision_detection(self)
if self.fall_damage then
self.fall_damage(self)
end
self.custom_function(self,dtime,moveresult)
end
- --self.move(self,dtime,moveresult)
+ self.move(self,dtime,moveresult)
--self.debug_nametag(self,dtime)