Updated:
Allow spectators to generate terrain game rule (spectators_generate_chunks)
The "Allow spectators to generate terrain" rule is called spectators_generate_chunks in Java 1.21.11 and later, and spectatorsGenerateChunks in 1.21.10 and earlier. Controls whether players in spectator mode generate new terrain.
Basic data
| Name | Allow spectators to generate terrain |
|---|---|
| Rule name (Java 1.21.11+) | spectators_generate_chunks |
| Old name (Java 1.21.10 and earlier) | spectatorsGenerateChunks |
| Bedrock name | No rule with the same name |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule spectators_generate_chunks falseReset to the default (true)
/gamerule spectators_generate_chunks trueCheck the current value
/gamerule spectators_generate_chunksJava 1.21.10 and earlier
/gamerule spectatorsGenerateChunks falseNotes
- Java 1.21.11 renamed game rules to lower case with underscores. If an older command or a map description uses the old name, rewrite it for your version.
- Game rules are saved per world. On a server, a new world starts with the default values again.
Questions
Typing spectatorsGenerateChunks gives an error
In Java 1.21.11 and later the rule is called spectators_generate_chunks. Write /gamerule spectators_generate_chunks … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule spectators_generate_chunks without a value. The current value is shown in chat.