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

Replace One Block Type with Another

Change all blocks of one type in a region to a different type

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

Replaces only dirt blocks with stone in the specified region, leaving other blocks unchanged.

/fill ~-10 ~ ~-10 ~10 ~10 ~10 stone replace dirt
48 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command with your desired block types.
  3. Press Enter — only matching blocks change.

Related commands