diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/head_logic.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/head_logic.lua index 810716db3..1a4233bf1 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/head_logic.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/head_logic.lua @@ -25,6 +25,7 @@ if not self.has_head == true then return end pos = vector.add(pos, head_offset) + if minetest.settings:get_bool("mcl_debug_head_code", false) then minetest.add_particle({ pos = pos, velocity = {x=0, y=0, z=0}, @@ -33,7 +34,7 @@ if not self.has_head == true then return end size = 1, texture = "default_dirt.png", }) - +end local bone_pos = vector.new(0,0,0) --(horizontal) diff --git a/settingtypes.txt b/settingtypes.txt index 077f76c85..d61c0e8bc 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -185,3 +185,4 @@ revoke_shout_for_spammers (Revoke shout priv for spammers) bool true mcl_item_id_debug (Item ID Debug) bool false mcl_debug_struct_noise (Show Structures Perlin Noise) bool false mcl_debug_chunk_borders (Show Chunk Borders) bool false +mcl_debug_head_code (Spawn dirt particles at mob head position) bool false