mojira.dev
MC-304138

Mobs don't spawn if server restarts with `doMobSpawning` set to false and then changed back to true after restart

Mobs will not spawn at all if the server shutdown with doMobSpawning(spawn_mobsin latest snapshots) set to false and then changed back to true when you log back on.

How to reproduce:

  1. Setup a simple vanilla creative server. (Make sure your oped)

  2. Log on to the server and run /gamerule doMobSpawning false

  3. Run /stop

  4. Start the server again and log back on

  5. Run /gamerule doMobSpawning true

  6. Run /time set midnight and notice no mobs spawn.

Current workaround is to change the difficulty to something else and back or restart the server again while doMobSpawning is set to true, then mobs will start spawning again.

Attachments

Comments 2

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Heres a video showing what happens:

BJTMastermind

(Unassigned)

Confirmed

Platform

Normal

Commands, Mob spawning

1.21.10, 25w45a, 25w46a, 1.21.11 Pre-Release 2, 1.21.11 Pre-Release 3, 1.21.11 Pre-Release 4, 1.21.11 Pre-Release 5, 1.21.11 Release Candidate 1

Retrieved