The bug
When any command block receives power, three ticks pass before it finally runs its command. When a repeating command block loses power, it continues to run commands for three ticks!
How to reproduce
Place a repeating command block:
/setblock ~ ~1 ~ air
Place a chain command block following it:
/say running
Place a redstone block on top
→ ❌ After a three ticks delay, "running" is printed three times.
Correct behavior: "running" should print once on the exact subsequent tick after the redstone block is placed.
Linked issues
relates to
Attachments
Comments


Noticed that when trying to making a score system. Kept adding 3 to the score instead of 1
This coupled with the 1.12 delay feature makes it very confusing

Make the second command block conditional (meaning it will only execute if the previous command block has executed successfully)

@CJC, that would solve this particular example, it doesn't resolve the issue that it exposes. In particular, you would have to have every chain block after the repeat be conditional or risk it running multiple times. Your solution is fine for this example, which is a very simple case, but it won't work for more complex chains that by their nature need to include both conditional and unconditional commands.
I added a vote.