Let's say I have a 18x18 circle, surrounded by a 3x3 ring of a different material. I want to teleport players randomly along the 3x3 ring all the way along the outside. I have tried experimenting with the
/spreadplayers
command, as I have used it to teleport players randomly along a line, like so:
tp @a -317 35 58
spreadplayers -317 -58 1 11 false @a
tp @a ~ 35 58
however, I can't seem to think how you would apply this logic to a ring. I understand that I can set the 'x' and 'z' as the centerpoint, but there is no mixrange argument, only maxrange, so how would I ensure that the players are a minimum of 18 blocks and a maximum of 21 blocks from the centerpoint?
/spreadplayers
has many extra features (like not teleporting you into lava etc.), I would just put it on a loop and have it spread out all players in the inner circle. Run for five seconds and the probability of someone being left in the inner circle is astronomically tiny.