TransWikia.com

How can I place a block randomly around my world?

Arqade Asked by ConfusedPersonality on August 7, 2021

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.

One 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

Answered by Halesy on August 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP