mojira.dev
MC-265710

/spreadplayers can spread entities to outside the world border

The /spreadplayers command is able to position entities outside the world border.

How to reproduce:
Run the following commands in order:

  1. /worldborder center ~ ~

  2. /worldborder set 10

  3. /spreadplayers ~ ~ 0 100 false @s
    You now most likely ended up outside the world border.

For commands such as /teleport, you have to enter a specific position to be teleported to, so it seems intended that you can leave the world border using it. However, leaving the world border is probably not the intended behavior for /spreadplayers, considering that it's supposed to spread entities to safe locations.

Comments 2

Why is this intended? Spreadplayers normally avoids putting the targets in places they die (eg water, lava and fire), so why is making them suffocate ok all of a sudden?

spreadplayers is often used for technical reasons, including for loading chunks and similar - we do not think changing this and potentially breaking those mechanisms is a worthwhile change.

Ellivers

(Unassigned)

Confirmed

Commands

1.20.2, 23w40a

Retrieved