mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11:05 +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
|
||||
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
|
||||
mcl_util.replace_mob(self.object,"mobs_mc:zombie")
|
||||
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:villager_zombie")
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue