How to replace blocks in minecraft
Andrew Vasquez
Updated on March 27, 2026

Replace – Will replace all blocks in the region including air blocks, allowing Minecraft players to spawn in blocks in empty, air-filled regions. ReplaceTilename – …
There are other answers below:
Step 1Step 2Step 3Step 4Now, it’s time to type out and execute the replace command itself. The replace command relies on block IDs, which can be looked up here. When players have looked up the correct IDs for the blocks they wish to change, the command //replace
Learn how to mass replace blocks. I show you how to quickly replace blocks in Minecraft ps4, xbox, Pe, and other bedrock editions. This allows you to replace…
HOW TO USE COMMANDS TO MASS FILL/DESTROY/REPLACE BLOCKS in Minecraft Bedrock (MCPE/Xbox/PS4/Switch/PC)I showed how to use commands to fill, …
the first block takes the block you want to have (use air to simply remove blocks) the second block is the one you want to be replaced with the first one; replace is the magic part telling minecraft to replace blocks; So in your case this should do: /fill x y z x2 y2 z2 planks 5 replace purpur_block /fill x y z x2 y2 z2 log2 1 replace purpur_pillar
I would like to replace all instances of a modded block with a vanilla block. I plan on updating my Minecraft java modded world into a newer version, but the newer versions of a mod removes some blocks and items. I would also like to replace items in …
Replace – Will replace all blocks in the region including air blocks, allowing Minecraft players to spawn in blocks in empty, air-filled regions. ReplaceTilename – The name of the block to be replaced. Replacedatavalue – Like Tiledata, an optional argument for different variants of a block. That’s it. Have fun.
To replace the block at the coordinates (-209, 69, 2) with a jungle trapdoor: /setblock -209 69 2 jungle_trapdoor Example in Java Edition (PC/Mac) 1.11 and 1.12. To replace a block that is 1 block East and 1 block South with birch planks in Minecraft 1.11 and 1.12: /setblock ~1 ~0 ~1 planks 2. To replace the block beneath you with a diamond block:
This command is an example of replacing a sponge that is one block above where the command is executed from with a barrier. /fill ~ ~1 ~ ~ ~1 ~ minecraft:barrier 0 replace minecraft:sponge 0. This is what it is being replaced with. /fill ~ ~1 ~ ~ ~1 ~ minecraft:barrier 0 replace minecraft:sponge 0. This is what it is replacing. I hope this helps.
Examples. To replace the items in the bottom-right slot of a single chest two block above with four spruce saplings: replaceitem block ~ ~2 ~ slot.container 26 sapling 4 1. To replace the items in the rightmost hotbar slot of the nearest player with four spruce saplings: replaceitem entity @p slot.hotbar 8 sapling 4 1.
Related Questions
How to replace blocks in Minecraft Bedrock Edition?
Once cheats are enabled, Minecraft: Bedrock Edition players can open their chat console in-game and type out their command. The syntax of the command to replace blocks (in Bedrock Edition specifically) is currently: /fill
How to replace a block with a birch plank in Minecraft?
/setblock ~1 ~0 ~1 planks 2. Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command. This /setblock command would replace the block at ~1 ~0 ~1 with a birch plank.
How do you replace a block with wool in Minecraft?
To replace a block that is 2 blocks East and 7 blocks North with blue wool in Minecraft Education Edition: /setblock ~2 ~0 ~-7 wool 11. To replace the block beneath you with glass: /setblock ~ ~-1 ~ glass. To replace the block at the coordinates (8, 67, 26) with bedrock: /setblock 8 67 26 bedrock.
How do you replace a block with another block in Java?
SetBlock Command in Minecraft Java Edition (PC/Mac) In Minecraft Java Edition (PC/Mac) 1.13, 1.14, 1.15 and 1.16, the syntax to replace a block with another block is: /setblock