The bug
When a function is terminated because the maxCommandChainLength
gamerule value is reached no warning is printed to the log. For command blocks a warning is printed.
An error message is needed since terminating a function during its execution will likely cause undefined behavior.
How to reproduce
Download the attached file
and place it in the
datapacks
folder of your worldMake sure the value for
maxCommandChainLength
is at least 2/gamerule maxCommandChainLength 2
Use the following command to verify that the function is working
/function custom:test
→ ✔ It runs two commands
Set the value for
maxCommandChainLength
to 1/gamerule maxCommandChainLength 2
Run the function again
/function custom:test
→ ✔ It runs one command
Look at the log
→ ❌ No warning was logged
Attachments
Comments 3
As we suppress all error messages inside functions, this message would itself be suppressed. It would be inconsistent not to.
Is this an issue on 1.12.2?