Add option to spawn infected Zombie Villagers even when they are in the deny-spawn list
JeffHD opened this issue ยท 0 comments
Is your feature request related to a problem? Please describe.
Setup is as follows:
Region with deny-spawn zombie_villager (and all other monsters)
Villagers walk around this region
Zombie enters the region and kills villagers
Server tries to spawn zombie villagers
Doesn't work because deny-spawn (as it should)
Lose a lot of villagers :(
Describe the solution you'd like
A config option like: allow-villager-infection
In WorldGuardEntityListener at onCreatureSpawn add:
if (event.getSpawnReason().equals(SpawnReason.INFECTION) && wcfg.allowvillagerinfection){
return;
}