Stop Spectators Generating Chunks
Prevent spectator-mode players from loading new terrain
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sets spectatorsGenerateChunks to false so players in spectator mode can only see already-loaded chunks instead of generating new ones as they fly. This keeps spectators from silently expanding the world and pre-generating terrain. Set it back to true to restore the default.
/gamerule spectatorsGenerateChunks false40 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- Spectators can no longer generate new terrain as they move.
Related commands
Keep your items when you die instead of dropping them
/gamerule keepInventory trueStop creepers, endermen, and other mobs from changing blocks
/gamerule mobGriefing false