How to randomly place a certain block over the map within a radius? [duplicate]

How to randomly place a certain block over the map within a radius? [duplicate] - Kitchen interior in modern cafe

Let say I choose diamond block, I wanna place the block randomly all over the surface within a radius of 100 blocks. Is there a mod or command to do this kind of work?



Best Answer

  1. you'd go with /spreadplayers in the way that you randomly spread an entity over the area and just set a diamond block wherever it lands.
    With this method you need to be aware of the fact that it can get spread to the same location again, resulting in a tower of blocks. if you want to prevent that either go with the second way or implement something to combat that.

  2. or you use 100 entities and do everything at the same time. it's quicker but more resource intensive.




Pictures about "How to randomly place a certain block over the map within a radius? [duplicate]"

How to randomly place a certain block over the map within a radius? [duplicate] - Drone view of modern buildings located in rows between roads in suburb of contemporary town on daytime
How to randomly place a certain block over the map within a radius? [duplicate] - A Globe on a Block
How to randomly place a certain block over the map within a radius? [duplicate] - Facade of modern residential house



How do you place a lot of blocks at once in Minecraft?

Type the command in the chat window and press the Enter key to run the command. This /fill command would replace all blocks in the fill region, including air. The replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.

How do I use the Fill command to replace blocks?

Range 2 is the range a player want for a command block under a floor. Keep in mind that it will produce a globe shaped trigger area (rather than a cube), so a range of 2 makes an approximately 5\xd75\xd75 area and a range of 1 makes a 3\xd73\xd73 area (more like a + pattern with an extra block above and below the center).




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Maria Orlova, Kelly, Marina Leonova, Maria Orlova