Updated:
Command chain size limit game rule (max_command_sequence_length)
The "Command chain size limit" rule is called max_command_sequence_length in Java 1.21.11 and later, and maxCommandChainLength in 1.21.10 and earlier. Sets the most commands that one function or command block chain can run at once.
Basic data
| Name | Command chain size limit |
|---|---|
| Rule name (Java 1.21.11+) | max_command_sequence_length |
| Old name (Java 1.21.10 and earlier) | maxCommandChainLength |
| Bedrock name | maxcommandchainlength |
| Value type | Integer |
| Default | 65536 |
Commands you can copy
Set to 100000
/gamerule max_command_sequence_length 100000Reset to the default (65536)
/gamerule max_command_sequence_length 65536Check the current value
/gamerule max_command_sequence_lengthJava 1.21.10 and earlier
/gamerule maxCommandChainLength 100000Bedrock Edition
/gamerule maxcommandchainlength 100000Notes
- 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 maxCommandChainLength gives an error
In Java 1.21.11 and later the rule is called max_command_sequence_length. Write /gamerule max_command_sequence_length … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule max_command_sequence_length without a value. The current value is shown in chat.