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