When a command block contains a command to clone itself into a new location, the command re-triggers indefinitely, executing the clone over and over again. This occurs in 1.18, but not in 1.17.
Reproduction
Place a command block
Type in the command
clone ~ ~ ~ ~ ~ ~ ~ ~2 ~
Place a button on the command block
Press the button
Expected Outcome
The command block is cloned with the command two spaces above the original block.
Actual Outcome
The command block is cloned infinitely upwards every other block (see screenshot).
Linked issues
is duplicated by 1
Attachments
Comments 6
I did see that bug was fixed, but I'm not sure why that would imply command block should re-trigger themselves upon being cloned. These feel like different, albeit maybe related, issues to me.
Note: to test 1.17 command has to be changed to
clone ~ ~ ~ ~1 ~1 ~1 ~ ~2 ~
What changed in this version is that game no longer (incorrectly) skips some ticks when cloning (basically, off-by-one bug)
I believe that this is working as intended, since MC-49010 was fixed in 21w43a.