From 79265a596bd18f974b2af5d454156aa7d20e509d Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 13 Oct 2022 17:00:28 +0200 Subject: [PATCH] enable zombie piglin transformation --- mods/ENTITIES/mobs_mc/piglin.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/piglin.lua b/mods/ENTITIES/mobs_mc/piglin.lua index 9fab1e192..596cf5543 100644 --- a/mods/ENTITIES/mobs_mc/piglin.lua +++ b/mods/ENTITIES/mobs_mc/piglin.lua @@ -79,10 +79,11 @@ local piglin = { self.gold_items = 0 end, do_custom = function(self) - if self.object:get_pos().y > -100 then - --local zog = minetest.add_entity(self.object:get_pos(), "mobs_mc:zombified_piglin") - --zog:set_rotation(self.object:get_rotation()) - --self.object:remove() + if self.object:get_pos().y > mcl_vars.mg_overworld_min then + local zog = minetest.add_entity(self.object:get_pos(), "mobs_mc:zombified_piglin") + zog:set_rotation(self.object:get_rotation()) + self.object:remove() + return end if self.trading == true then self.state = "trading"