The bug
Modifier stages of a command decrease command quota even if they are not executed. This causes the command quota to be consumed in a counterintuitive manner.
How to reproduce
/scoreboard objectives add mc-266388 dummy/gamerule maxCommandChainLength 3/scoreboard players set # mc-266388 0/function mc-266388:f→ ✔
Ais printed. This behavior would be correct; the function call andexecute if score # mc-266388 matches 1each consumes 1 command quota, leaving 1 forsay A./function mc-266388:g→ ❌
Ais not printed. This behavior might be incorrect; the function call,execute if score # mc-266388 matches 1, and the secondif score # mc-266388 matches 1, which is not executed in this case, each consumes 1 command quota, leaving 0 forsay A.
data/mc-266388/functions/f.mcfunction
execute if score # mc-266388 matches 1 run seed
say Adata/mc-266388/functions/g.mcfunction
execute if score # mc-266388 matches 1 if score # mc-266388 matches 1 run seed
say AAttachments
Comments 0
No comments.