turn villagers to z villagers not normal zs
This commit is contained in:
parent
80fb648447
commit
f66a241188
|
@ -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 New Issue