mojira.dev
MC-103964

/Spreadplayer has a maximum z but not a maximum x

When using the spread player command in a command block i am able to set the X to extremely high numbers along the lines of 99999 however the Z only succeeds if set to a number below 696.

Comments 3

Please provide the exact command you're using.

It's of course possible that the spreading of players is limited by the world since players are not spread on water, lava etc,

exact command is /spreadplayers 8900 650 0 1 false @e[tag=ChunkLoader]

I am using it as a makeshift chunk loader for a far away location. I dont think it is due to environmental hazards due to it accepting 650 however not accepting 700, 900, 5500, 9000, 9999, or 99999

The usage of the spreadplayer command is :

/spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams true|false> <player ...>

The <x> and <z> define a position, and <maxRange> tell how far around from that position entities are spread.

Your command define x and z as absolute coordinate, and a max range of 1. This mean entities are spread in a very small space (3x3 blocks). So yes this is very likely an environmental hazards issue. Go check in your world at x=8900 z=700, z=900... if the entity should be able to spawn.
If you think this is still an issue, please provide seed and coordinate where you execute your command and maybe information on how the world was generated.

Kai Cook

(Unassigned)

Unconfirmed

Minecraft 1.10

Retrieved