Skip to content
[/craft]
Replace One Block Type with Another

Replace One Block Type with Another

Swap every block of one type for another in a region

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Replaces every dirt block in an 11×11×11 region with stone, leaving all other blocks untouched. Swap 'dirt' and 'stone' for any block IDs you need — useful for terraforming or quickly changing build materials.

/fill ~ ~ ~ ~10 ~10 ~10 stone replace dirt
42 characters

How to use

  1. Stand at one corner of the region you want modified.
  2. Open chat and paste the command — change the two block IDs at the end.
  3. Press Enter — only the specified block type is replaced instantly.

Related commands