Updated:
Enable Spawner Blocks game rule (spawner_blocks_work)
The "Enable Spawner Blocks" rule is called spawner_blocks_work in Java 1.21.11 and later, and spawnerBlocksEnabled in 1.21.10 and earlier. Controls whether spawner blocks spawn mobs.
Basic data
| Name | Enable Spawner Blocks |
|---|---|
| Rule name (Java 1.21.11+) | spawner_blocks_work |
| Old name (Java 1.21.10 and earlier) | spawnerBlocksEnabled |
| Bedrock name | No rule with the same name |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule spawner_blocks_work falseReset to the default (true)
/gamerule spawner_blocks_work trueCheck the current value
/gamerule spawner_blocks_workJava 1.21.10 and earlier
/gamerule spawnerBlocksEnabled 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 spawnerBlocksEnabled gives an error
In Java 1.21.11 and later the rule is called spawner_blocks_work. Write /gamerule spawner_blocks_work … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule spawner_blocks_work without a value. The current value is shown in chat.