How to replace a certain ammount of blocks in a certain dimension?

Started by stuf_y on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to replace a certain ammount of blocks in a certain dimension?

Does anyone know how I would replace like 10 blocks of a certain block to a different block randomly but only in one dimension? The player wont be in the dimension whilst this process is happening but if needed it can happen when the player enters the dimension.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
execute command / fill X1 Y1…
Sun, 05/17/2026 - 11:10

execute command / fill X1 Y1 Z1 X2 Y2 Z2 minecraft:grass_block replace minecraft:sand

procedure seen like this ->
1,2,3 x y z - first coordinate position

4,5,6 xyz -second coordinate position

when procedure active, get replace Birch log to iron block 

work on like minecraft command