mojira.dev
MCPE-149883

Witches can despawn during raids, usually despawning instantly on simulation distance 4

Steps to reproduce (instant despawn on sim4)

  1. Load

[media]
  1. (slightly modified version of the test world from MCPE-45183)

  2. Press the "start raid" button.

  3. After each of waves 1-3 spawn, press the "kill" button to kill the wave.

Expected result

Wave 4 spawns with 3 witches.

Observed result

When wave 4 spawns, the 3 witches instantly despawn (usually, in some attempts they may not). If you happen to be looking in the direction of the spawn you can see them appear then disappear. The raid bar for wave 4 is immediately half empty.

Steps to reproduce (despawn during a raid)

  1. In an empty flat world set to sim6 or higher, place a bed and spawn a villager.

  2. Surround the villager with blocks to protect it.

  3. /effect @s bad_omen

  4. When each of waves 1-3 spawn, run /kill @e[type = !villager]

  5. After the witches and illagers have made finished their initial pathing to a random spot inside the village boundary, run /tp @s ~ ~150 ~

  6. Fall back down to the ground.

Expected result

All 6 raid mobs from wave 4 are still present.

Observed result

The witches have despawned, and the raid bar for wave 4 is half empty.


Witches spawned in a raid on normal or hard mode instantly disappear or don't spawn at all. Starting a raid and getting to wave 4 or 7 should spawn witches but instead the raid bar instantly depletes because they either don't spawn or instantly despawn.

Linked issues

Attachments

Comments 5

Does this only happen on simulation distance 4?

I checked and apparently it does. 6 and 8 work fine.

The witch.json behavior file in the 1.18.0 vanilla behavior folder has the same updated raid_persistence component group and associated events as illagers, but for some reason it has no effect. The components in the raid_configuration group are working correctly, so the bug is not in the spawn event per se.

Using a test world with chunks generated before 1.16.100, I was able to view a raid witch's NBT data with MCCToolchest. It did not have the persistence bit. So something is going wrong with the raid_persistence component group in the witch.json, or perhaps the game is ignoring the 1.18.0 witch.json entirely and falling back on the 1.17 version.

Affects Windows 10 Bedrock v1.18.10.21 Beta. You never see a witch.

I found the problem in entities\witch.json

The "minecraft:raid_persistence" group is outside of the closing bracket for the "component_groups" section. It is written as a section in itself, on the same level as "component_groups", "components", and "events", complete with commas and brackets in the right places to make it pass a basic parser like jsonlint. Just not in the right places to make it work in-game. 👎

Here are images of the bugged vanilla json and a corrected version:

[media]

[media]

Sleeby

(Unassigned)

672286

Confirmed

Multiple

1.18.10.21 Beta, 1.18.0.27 Beta, 1.18.0, 1.18.2 Hotfix

1.18.20.21 Beta, 1.18.30

Retrieved