1. Fill a 6x6x6 area with stone
The two corners define a box and every block inside it is filled, the corners included
/fill ~ ~ ~ ~5 ~5 ~5 minecraft:stone replace
What it does Will fill "Stone" in the area between ~ ~ ~ and ~5 ~5 ~5, replacing all existing blocks.
- Relative coordinates are in use, so the block count can't be calculated ahead of time — be careful not to exceed 32,768 blocks per command