When a witch spawns somewhere near a village (usually underground in a hidden area) during a raid, it won't despawn even though it should because it spawned naturally. This causes raids in villages to stay forever until you mine out the entire area near the village to look for the witch and kill it.
To reproduce, spawn a witch in a safe place during a raid and it won't despawn when you wait, or move at least 128 blocks away.
Linked issues
relates to 1
Attachments
Comments 5
Can confirm in 19w11b.
This bug can be extended to every mobs which are parts of raids and has more important consequences. If long ago I had captured a vindicator and named it in order for it to stay persistent and serve as a killer for other mobs. Then whenever a raid happens, he will be counted as a raider until he dies. This will of course be a problem during normal gameplay when we want to "own" some mobs this way.
How to reproduce is much straightforward. Summon a pillager for instance. You can name it or not, it won't change the way it is treated. Let's say name it Bill, like I did in screenshot
, with a second pillager. Then let you be in condition to have a raid (villager, bed, working station, and bad omen worked for me). Then kill the raiders. You will then see a message saying the number of mobs remaining. In order to resume the raid, you have to kill the pillagers that yet were there before the raid started.
@Johniber I have not confirmed this for other illagers from spawn eggs, but it is plausible that illagers from spawn eggs or naturally spawned pillagers will become persistent when a raid is nearby as well.
Relates to MC-142140