EngineHub / EngineHub/WorldGuard

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

Open
#1,831 0 comments 0 reactions 0 assignees View on GitHub
status:pending type:feature-request
Dominant language
Java
Stars
938
Forks
671
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.