How to place a block in a random area within a radius
I'm making a disco minigame, and when I /fill make the floor drop out, there needs to be platforms in random places for the player to jump on, and be saved. How do I do this? (if there is a way to do this with command blocks, then that is recomended. I kinda need to do it with command blocks)
Best Answer
You could teleport invisible armor stands and do /fill X Y Z X2 Y2 Z2 -block of floor-
/execute @e[type=ArmorStand] ~ ~ ~ /fill ~-1 ~ ~-1 ~1 ~ ~1 -block of platform-
/fill X Y Z X2 Y2 Z2 air 0 replace -block of floor- 0
Pictures about "How to place a block in a random area within a radius"



How do you set a block for random blocks in Minecraft?
Wiki. -Place the "Choose Blocks" endermites on the blocks you want to be present. These blocks will be selected at random. -If you select the same block more than once, you can increase the chances of that particular block appearing.How do you fill an area with a block?
You can't place a block on a block with a right click action without pressing shift . However, when you fly in creatve mode and hold shift and space at the same time, then you will stay at the same hight, so it's possible to place a block on a block with a right click action while floating in creative mode.How do you place a block without interacting?
You can use the /spreadplayers command to teleport all targeted players to random locations in a specified region.[Unity 5] Tutorial: How to spawn objects at random position in a given area
More answers regarding how to place a block in a random area within a radius
Answer 2
I would summon armor stands in every block with [nogravity:1,invisible:1,invulnerable:1,CustomName:"Anything"] and then do execute @e ~ ~ ~ [type=armorstand,Name=anything] setblock ~ ~ ~ stone
Instead of stone usw ans block you want
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Meruyert Gonullu, Pok Rie, Pok Rie, Pok Rie
