mojira.dev
MC-134702

Fish spawned from buckets count towards the aquatic mob cap

Workaround

You can fix this issue for yourself by installing the attached

[media]

datapack to your world. This datapack sets PersistenceRequired for all mobs spawned by buckets to 1b, so that they no longer count towards the mob cap.

The bug

If there are at least 16 fish spawned from buckets anywhere in loaded chunks (that might be the spawn chunks, chunks loaded via /chunk, or chunks that players currently are in), no aquatic mobs (fish, dolphins, and squid) will spawn anywhere.

How to reproduce

  1. Create a new superflat world (I chose "Redstone Ready") and change it so that it has biome minecraft:ocean

  2. Run

    /gamerule doMobSpawning false
  3. Create a big aquarium at spawn

    /fill ~ ~-1 ~ ~20 ~-21 ~20 water
  4. Drop 16 salmon from buckets in there

  5. Teleport to somewhere far away, for example

    /tp 1000 56 1000
  6. Check that all salmon still are there

    /execute if @e[type=salmon]
  7. Create a big aquarium there as well

    /fill ~ ~-1 ~ ~20 ~-21 ~20 water
  8. Run

    /gamerule doMobSpawning true
  9. Notice that no mobs spawn there whatsoever

  10. Run

    /kill @e[type=salmon,limit=1]
  11. Notice that suddenly, there are many mobs spawning in that aquarium

How to fix this bug

Change the aquatic mob cap so that fish spawned from buckets no longer affect it.

Original report

As stated tropical fish and pufferfish are not spawning whatsoever in my main world. I created another world to see if they would spawn there and they spawned just fine. I have spent hours upon hours in my main world and I don't want to have to restart. Is there any way to fix this? I don't know if it's a factor, but I had to travel a fair distance from my spawn point to find warm ocean.

Linked issues

Attachments

Comments 22

Was your world migrated from 1.12.2 or its a new world in 1.13?

It's a new world from 1.13

Try sleeping near the ocean so you spawn there, then kill all entities with /kill @e(that will kill you too), then check if tropical fish will start spawning

That worked. You are a life saver. Any idea what causes them to stop spawning?

There is a limit of how many mobs can be in a world at the same time, looks like with all the exploring you did a lot of them spawned and they didnt despawn by the time you were in the ocean

12 more comments

You mean with the datapack at the top of the page? I can't get that to work. Followed all instructions, as vague as they are, can't get fish back. Why are there no fish on my server?

No. This has been fixed in 18w33a (1.13.1), without any data packs, just like it says above. Maybe you're still on 1.13?

This issue seems to be back in 1.14+: MC-148613

This issue seems to have come back in the latest version.  Currently in a 1.14.2 world, I made an aquarium with ~50 bucketed fish, if anyone keeps the aquarium chunks loaded no squid, dolphins, or any other aquatic mob will spawn in anywhere else.  

Mary Johannah Lane

migrated

Confirmed

Minecraft 1.13, Minecraft 18w32a

Minecraft 18w33a

Retrieved