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

NameCommand chain size limit
Rule name (Java 1.21.11+)max_command_sequence_length
Old name (Java 1.21.10 and earlier)maxCommandChainLength
Bedrock namemaxcommandchainlength
Value typeInteger
Default65536

Commands you can copy

Set to 100000

/gamerule max_command_sequence_length 100000

Reset to the default (65536)

/gamerule max_command_sequence_length 65536

Check the current value

/gamerule max_command_sequence_length

Java 1.21.10 and earlier

/gamerule maxCommandChainLength 100000

Bedrock Edition

/gamerule maxcommandchainlength 100000

Notes

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.

Other game rules