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
[media]
and place it in the
datapacksfolder of your worldSet the
maxCommandChainLengthvalue to 2/gamerule maxCommandChainLength 2Use 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?