Updated:
Universal anger game rule (universal_anger)
The "Universal anger" rule is called universal_anger in Java 1.21.11 and later, and universalAnger in 1.21.10 and earlier. Controls whether angry neutral mobs attack every nearby player, not only the one who angered them.
Basic data
| Name | Universal anger |
|---|---|
| Rule name (Java 1.21.11+) | universal_anger |
| Old name (Java 1.21.10 and earlier) | universalAnger |
| Bedrock name | No rule with the same name |
| Value type | true / false |
| Default | false |
Commands you can copy
Turn on (true)
/gamerule universal_anger trueReset to the default (false)
/gamerule universal_anger falseCheck the current value
/gamerule universal_angerJava 1.21.10 and earlier
/gamerule universalAnger trueNotes
- 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 universalAnger gives an error
In Java 1.21.11 and later the rule is called universal_anger. Write /gamerule universal_anger … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule universal_anger without a value. The current value is shown in chat.