mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-01 23:11:11 +01:00
turn villagers to z villagers not normal zs
This commit is contained in:
parent
80fb648447
commit
f66a241188
1 changed files with 2 additions and 2 deletions
|
@ -2073,8 +2073,8 @@ mcl_mobs:register_mob("mobs_mc:villager", {
|
||||||
|
|
||||||
if cmi_cause and cmi_cause.puncher then
|
if cmi_cause and cmi_cause.puncher then
|
||||||
local l = cmi_cause.puncher:get_luaentity()
|
local l = cmi_cause.puncher:get_luaentity()
|
||||||
if l and math.random(2) == 1 and( l.name == "mobs_mc:zombie" or l.name == "mobs_mc:baby_zombie" or l.name == "mobs_mc:zombie_villager") then
|
if l and math.random(2) == 1 and( l.name == "mobs_mc:zombie" or l.name == "mobs_mc:baby_zombie" or l.name == "mobs_mc:villager_zombie" or l.name == "mobs_mc:husk") then
|
||||||
mcl_util.replace_mob(self.object,"mobs_mc:zombie")
|
mcl_util.replace_mob(self.object,"mobs_mc:villager_zombie")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue