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

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.

Chalmes (Jon)

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.

Tails

Removed "CLONE" in the title.

Tails

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!

Fredrik Olsson

Still a bug in 1.7.2

The strange part is that the "area" in Temple.dat under the data folder is generated and looks to be correct.
But the flatland code seems to ignore that data.

galaxy_2alex

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

Brad Corbin

Can confirm, still a problem in release 1.7.9.

I also was able to confirm that this is directly a result of the world generation settings. I generated a flatland using the settings in the description above, normal mobs spawned (see image generator_flat.png).

I then used NBTExplorer and edited the "generatorName" value in level.dat from "flat" to "default". After reloading the world, only witches spawned (see generator_default.png).

galaxy_2alex

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

Brad Corbin

Yes, confirmed that it is still a problem for 1.8.1 Prerelease 3

Above directions still apply, use the following for superflat preset:
3;2*minecraft:bedrock,60*minecraft:dirt,minecraft:stone_slab;6;biome_1

Brad Corbin

Seems similar in many ways to MC-59314 (Guardians not spawning on superflat worlds).

Different details, also much easier to test (just create a superflat world using preset "Water World").

Someone 3x7

Still an issue in 1.8.2-pre7

Fredrik Olsson

Still an issue in 1.8.4

Smokey95dog

Still an issue in 1.8.8 and the newest 1.9 snapshot 15w45a.

Dracconis69

Can confirm that this issue is still present in all versions after the OP's reported versions. For creators trying to make a superflat void world for their Skyblock maps only regular mobs will spawn and Guardian Temples will not even spawn in.

Jack Flint

Testing regarding this issue, this issue is superseded by issue MC-169728

Edit: No longer the case, as moderator merged posts.

W_V

Confirmed for 1.15.2 and 20w12a

Alexis Evelyn

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.

W_V

In 1.16.1 and 20w28a

W_V

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