Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to spawn infected Zombie Villagers even when they are in the deny-spawn list #1831

Open
JeffHD opened this issue Sep 13, 2021 · 0 comments
Labels
status:pending Pending acceptance or closure. type:feature-request Request for something new

Comments

@JeffHD
Copy link

JeffHD commented Sep 13, 2021

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;
}

@JeffHD JeffHD added status:pending Pending acceptance or closure. type:feature-request Request for something new labels Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:pending Pending acceptance or closure. type:feature-request Request for something new
Projects
None yet
Development

No branches or pull requests

1 participant