How can I place a block randomly around my world?

How can I place a block randomly around my world? - Facade of modern residential house

I downloaded a lucky block mod and I want to place them randomly in my world. Is there a command to do this? I'd prefer the entire world to be affected but if it's just around 200 blocks then that's fine.



Best Answer

There isn't one command but you could do it with a few:

  1. Summon large amounts of entities. Armour stands are probably the best as they can't move.
  2. Use the spreadplayers command to distribute them around the world.
  3. Use the execute command to setblock your lucky block at each armour stands' position.
  4. Use the kill command to remove all the armour stands.

Links on each commands' syntax are below.

Spreadplayers

Execute

Setblock

Kill




Pictures about "How can I place a block randomly around my world?"

How can I place a block randomly around my world? - Exterior of modern white building corner with commerce organization located in urban city district on clear autumn day
How can I place a block randomly around my world? - Overhead view of colorful roofs of residential buildings and lush green trees in flooded small village
How can I place a block randomly around my world? - Residential houses and green trees in flooded village



Quick Answer about "How can I place a block randomly around my world?"

  • Summon large amounts of entities. Armour stands are probably the best as they can't move.
  • Use the spreadplayers command to distribute them around the world.
  • Use the execute command to setblock your lucky block at each armour stands' position.
  • Use the kill command to remove all the armour stands.


  • How do you place a random block in Minecraft?

    In easy mode, you just press the 'r' key (can be changed in options). From now on, whenever you place a block, your hotbar will switch to a different block.

    How do you randomly place blocks with commands?

    Installing the command: - Open your world (with cheats enabled) in Minecraft. - Type "/tp @p 0 200 0" to teleport yourself to the center of the world. You must do this otherwise it will not work. - Type "/give @p command_block" and place the command block on the ground.

    How do you place a block in Minecraft where you are looking?

    Open the chat box and enter \u201c/give [your username] command_block\u201d Place the block where you want it.



    Minecraft Random Block Placer - NO MODS




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

    Images: Maria Orlova, Meruyert Gonullu, Pok Rie, Pok Rie