turn villagers to z villagers not normal zs

This commit is contained in:
cora 2022-11-15 20:31:49 +01:00 committed by Gitea
parent 80fb648447
commit f66a241188

@ -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