mojira.dev
MC-97196

/spreadplayers shows wrong error message / large number in error message when no entities were spread

The bug

The /spreadplayers command shows an incorrect error message when no suitable place exists.

Could not spread 1 entities around <x>, <y> (too many entities for space - try using spread of at most 340282346638528860000000000000000000000,00)

How to reproduce

  1. Stand in the middle of a 3*3 water area

  2. Use the following command

    /spreadplayers ~ ~ 0 1 false @s

Linked issues

Comments 1

I know this is already mentioned above, but I can confirm this bug in 1.10.2. Also, the steps to replicate this bug are:
1. Create a world with generate structures off, cheats on, gamemode creative, and customized superflat world type. You can use the preset "3;minecraft:air;1;village".
2. Using the /setblock command, place a block underneath you. For example: "/setblock ~ ~-1 ~ stone"
3. Open your chat and run the command "/spreadplayers ~ ~ 1000 2000 false @p"
4. Observe the results. Now, because there are no blocks for the player to be teleported to, an error in running the command is to be expected. What isn't expected is the message it displays. I hope these steps are useful to anyone.

StanleyMines

michael

Confirmed

/spreadplayers

Minecraft 16w07a, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w44a, Minecraft 1.11, ..., Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w45a, Minecraft 18w02a, Minecraft 18w15a

Minecraft 18w21a

Retrieved