1

Help With /spreadplayersmemory

BuddhaTortoise 1/22/23 7:40 pm
216
1/23/2023 2:25 pm
So I'm trying to use the /spreadplayers command for a maze minigame to spread items to random locations in the maze by spreading armour stands to random locations in the maze and then using /setblock to place a block where they are, but I can't find a way to stop /spreadplayers from putting them on top of the maze walls, so does anyone know how to make them only spread in random places inside the maze and not change elevation?
Posted by
BuddhaTortoise
Level 44 : Master Imposter
12

  Have something to say?

JoinSign in

1

Spuduking
01/23/2023 2:25 pm
Level 34 : Artisan Procrastinator
If the maze walls are at a uniform height, you might try this syntax of the command:

/spreadplayers <center> <spreadDistance> <maxRange> under <maxHeight> <respectTeams> <targets>

I have little experience with the spreadplayers command, but maybe the 'under <maxHeight>' argument could solve your problem
1

Welcome