JavaSwitch edition using the selector in the header.
Quick templates
Coordinates
From
X
Y
Z
To
X
Y
Z
Use ~ for relative, ^ for local (facing) coordinates. Diagonally opposite corners — order doesn't matter.
Use any valid block ID. Add states with brackets: oak_stairs[facing=north]
Replaces every block in the region
E.g. dirt — only those blocks inside the region will be swapped.
/fill ~ ~ ~ ~10 ~5 ~10 stoneJava and modern Bedrock (1.20+) share the same /fill syntax. Bedrock caps fill volume at 32,768 blocks per command — split large regions into separate fills.