From 7abffc5df9ea54301e6a77ada8c83d670fa688b0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 8 Dec 2020 01:44:45 +0100 Subject: [PATCH] Fix mobs spawning 1.5 nodes above the ground --- mods/ENTITIES/mcl_mobs/api.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 03c0d410..11b97d0f 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4000,15 +4000,14 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, end end - -- spawn mob 1/2 node above ground - pos.y = pos.y + 0.5 - -- tweak X/Z spawn pos + -- tweak X/Y/Z spawn pos if width_x % 2 == 0 then pos.x = pos.x + 0.5 end if width_z % 2 == 0 then pos.z = pos.z + 0.5 end + pos.y = pos.y - 1.499 local mob = minetest.add_entity(pos, name) minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos))