mojira.dev
MC-245602

Cloning a command block infinitely clones itself

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

  1. Place a command block

  2. Type in the command 

    clone ~ ~ ~ ~ ~ ~ ~ ~2 ~
  3. Place a button on the command block

  4. 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

Attachments

Comments 6

I believe that this is working as intended, since MC-49010 was fixed in 21w43a.

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.

Can confirm as of 1.18.1

Can reproduce this in 1.17.1. This is WAI.

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)

The issue is still there in 1.21
Is this really supposed to be WAI? infinite cloning by the command block itself makes various vehicles exploiting the "masked move" option impossible to create. I think in versions before 1.18 it worked normally, now it's broken, so the issue is NOT resolved.

Timothy Foster

(Unassigned)

Confirmed

(Unassigned)

1.18.1

Retrieved