mojira.dev
MC-129682

Hostile mobs don't spawn after upgrading from 18w16a

Playing in hard mode, locked, hostile mobs don't spawn. Tried /gamerule doMobSpawn true and changing the difficulty using the /difficulty tag. But nothing has worked thus far. Mob spawners still spawn mobs from what I've seen so far.

Update: Hostile mobs are spawning, just very seldom. Also, it seems like the mob cap is very low as I've only seen a max of five mobs spawn in at once. (four pigmen and one ghast.) I haven't been to the overworld yet since this discovery. I will update when I have more info.

Update 2: Overworld hostile mobs spawn, too. But also seldomly.

Linked issues

Attachments

Comments 15

Ahmad Al-Yousef

I moved my world from 18w16a to 18w20a and the same thing happened to me. Hostile mobs don't spawn. So I went to chunks that have not been generated before and hostile mobs spawn there fine.

 

It appears that hostile mobs don't spawn in old world generation. But they do in new world generation.

I came to report that my spider and skeleton spawners were no longer working in 18w20a, but this bug report could easily be the explanation for that.

I too updated my world from 18w16a.  I've been switching back and forth between survival at normal difficulty and creative mode.  Either way, the spawners don't spawn anything.  My base and caves are well lit, verified with spectator mode, so there aren't any hidden underground mobs maxing the mob cap.

I also have a world from 18w16a that I updated to 18w20a and ran into this problem. I figured something was up when I AFK'd for ~8 hours next to with & iron farms with 0 drops.

Confirmed in 18w20b.

How to reproduce:

  1. Create a world in 18w16a with cheats on.

  2. Teleport to somewhere away from the original region. (not sure if this is necessary)

  3. Explore around the region a little bit(not sure if necessary)

  4. Convert the world into 18w20b.

  5. /set time night

  6. No hostile mobs will spawn.

I'm seeing the same thing in an upgraded 18w16a world where spawning is extremely rare and spawners don't seem to work.  The only exception is a partially built Slime Farm that is producing huge amounts of slime balls.

5 more comments

This bug can be solved by modifying the NBT tree of the world:

  1. Back up your 18w16 world.

  2. For each chunk of each region, including the Nether and the End:

    1. Locate the Level node.

    2. Locate its Heightmaps subnode.

    3. If its empty, leave it as is.

    4. Otherwise, save the list of values in its LIGHT subnode, or in its SOLID subnode if the former is not present.

    5. Remove everything in the Heightmaps node and replace it with 4 subnodes (of type LongArray) with the following names: LIGHT_BLOCKING, MOTION_BLOCKING, MOTION_BLOCKING_NO_LEAVES and OCEAN_FLOOR. In these nodes, put the list of values you've got in the previous step.

  3. Open Minecraft and convert your world to the last snapshot.

If you've got a program able to do this kind of modifications, don't forget to convert your sea grass, too.
Hope this helps!

Still occurs in 1.13-pre1 hard mode. Overworld hostile mobs spawn seldomly. Dark caves have literally max 1 hostile mob.

Edit: Problem seems to occur mostly in caves, very few or no mobs there.

I thought only caves are affected but then I've compared 1.12.2 and 1.13-pre1 and there is a huge difference in mob quantities above ground too.

It seems to be fixed for me on 1.13 with the "optimize world" button, my xp/gold farm on the roof of the nether restart spawning, same as the chunks i ve already charged long time ago. Hoping it ll works for you all too.

I'm having this issue in snapshop 19w07a in my world that I first made in early minecraft 1.13 snapshots. Those flying creatures that spawn when you dont sleep still work but no other hostle mobs in the overworld will spawn ever. I hope there is a way to fix this.

Maltir

Fry

Community Consensus

Minecraft 18w20a, Minecraft 18w20b, Minecraft 18w21b, Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre2

Minecraft 1.13

Retrieved