mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-01 23:11:11 +01:00
enable zombie piglin transformation
This commit is contained in:
parent
eed7c67f60
commit
79265a596b
1 changed files with 5 additions and 4 deletions
|
@ -79,10 +79,11 @@ local piglin = {
|
||||||
self.gold_items = 0
|
self.gold_items = 0
|
||||||
end,
|
end,
|
||||||
do_custom = function(self)
|
do_custom = function(self)
|
||||||
if self.object:get_pos().y > -100 then
|
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")
|
local zog = minetest.add_entity(self.object:get_pos(), "mobs_mc:zombified_piglin")
|
||||||
--zog:set_rotation(self.object:get_rotation())
|
zog:set_rotation(self.object:get_rotation())
|
||||||
--self.object:remove()
|
self.object:remove()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if self.trading == true then
|
if self.trading == true then
|
||||||
self.state = "trading"
|
self.state = "trading"
|
||||||
|
|
Loading…
Reference in a new issue