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
Stand in the middle of a 3*3 water area
Use the following command
/spreadplayers ~ ~ 0 1 false @s
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.