mojira.dev
MC-226206

Cannot `setblock` after `teleport`

At 21w20a, I created a command to place a block after teleporting to the unloaded coordinates, but the block is not placed.

This was possible in 1.16.5.

To Command block

/execute in minecraft:overworld run tp @a 0.50 10.00 5000.50 0.00 0.00

To Chain Command block

/execute in minecraft:overworld run setblock 0 10 5005 minecraft:stone

Attachments

Comments 2

So was this possible to do in 1.16.5 because in your affected versions you state 1.16.5 as a version in which this bug affects?

Yeah, no, this was never (reliably) possible unless the position was already loaded for another reason.
If you use spreadplayers instead of teleport, it will force the chunk the load in order to determine the block to spread on, if you want to circumvent this.

Ayato Goda

(Unassigned)

Unconfirmed

(Unassigned)

1.16.5, 21w20a

Retrieved