mojira.dev
MC-3524

Structure related mobs do not spawn in flat type world generation

Structure related mobs can not spawn in superflat worlds.
This is true for:

  • Pillager

  • Witches

  • Guardians

Steps taken to confirm this:

Forward Confirmation

  1. Generated World on any Seed with Superflat (flat) World Generation and included all available structures (default spawn ratio)

  2. Using admist and /locate to find nearest structure, teleport to it, and confirm no spawning

  3. Save and exit.

  4. Using NBTExplorer change world generation type from 'flat' to 'default'

  5. Join world and confirm spawning entities

  6. Confirm changed world-gen by loading new chunks

Backward Confirmation

  1. Generated new default World on any Seed

  2. Using /locate to find and teleport to nearest structure. Confirm through admist as well.

  3. Save and exit.

  4. Using NBTExplorer change world generation type from 'default' to 'flat'

  5. Join world and kill all Entities (except player) to confirm no spawning entities.

  6. Confirm changed world-gen by loading new chunks

In addition, seed-changes were tested, as well as importing confirmed-working chunks into superflat world and manually creating structures through NBTExplorer.

 

In all these cases structure entities consistently did not spawn while level.dat contained 'flat' - type world generation.

 

Attachments

Comments 21

Fredrik Olsson

The witch pressent in the pic "Can't reproduce in 1.4.5.jpg" is generated with the hut and not spawned in in the hut.

In the screenshot i posted a skeleton has spawned in the hut, and that only happens in flat worlds.
In normal worlds the only mob that can spawn in a hut is the witch!

So i still claim this to be a bug.

You've convinced me, confirmed 🙂

Poking in the code it seems that yes there is a witch spawned by the world generator by default when the hut is initially created, but after that, only the regular mobs would spawn in there. I tried deconstructing the hut and rebuilding the floor at different heights, but nothing would force another witch to spawn there.

Removed "CLONE" in the title.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Fredrik Olsson

Tested in 1.5 and the bug is still there!

11 more comments

Confirmed for 1.15.2 and 20w12a

Can confirm, this is still an issue for 1.16 pre-2. I spent a few hours pouring over nbt data trying to figure out why my outpost wasn't working and weeded it out to world type. Also, I tried a superflat preset explicitely telling the game to generate the outposts to find out it didn't work anyway.

In 1.16.1 and 20w28a

Can confirm for 21w20a

Daniel Jansson

Still the case in 1.18.1

Fredrik Olsson

(Unassigned)

Confirmed

Important

Mob spawning, Structures

Minecraft 1.4.5, Minecraft 1.5, Minecraft 1.6.4, Minecraft 1.7.2, Minecraft 1.8, ..., 1.17.1, 21w38a, 1.18, 1.18.1, 22w06a

1.18.2 Pre-release 1

Retrieved