How to raise the command fork limit in Minecraft
Run /gamerule max_command_forks 131072 so one command chain or function can create up to 131072 execution contexts. The default is 65536.
max_command_forks
Sets the maximum number of execution contexts one command chain or function can create.
/gamerule max_command_forks <value> Examples
/gamerule max_command_forks 131072 Double the default limit.
Arguments
valueOptional- Whole number to set. Leave it out to show the current value.
What it does
Commands like /execute as @e create one context per matched entity. This limit stops a single function from forking into so many contexts that the server stalls. Datapack authors raise it only when a large world legitimately needs it.
Good to know
- Renamed from
maxCommandForkCount.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.