Minecraft 18w05a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w08b, 21w17a, 1.17
The maxRange parameter of /spreadplayers has to be greater than or equal to 1 despite not being centered on the block grid. This makes it difficult to consistently limit the amount of valid locations to less than 9.
This does not apply to 1.12.2 since /spreadplayers run apparently centered on the block grid.
- Use the following command
- Spawn multiple entities around you, for example armor stands
- Use the following /spreadplayers command
→ The entities are teleported to 9 possible blocks, but how would you define that only the closest 4 blocks should be used?