The bug
Modifying the maxCommandChainLength
gamerule value inside a function or command block does not affect the currently running chain.
How to reproduce
Download the attached file
and place it in the
datapacks
folder of your worldSet the
maxCommandChainLength
value to 2/gamerule maxCommandChainLength 2
Use the following command
/function custom:modify_max_chain_length
→ ❌ It executes only one command
Run the function again
→ ✔ Now it executes both commands
Is this an issue on 1.12.2?