Building something in Minecraft can take a bit of time, and sometimes the choice of a block ends up not being ideal and players have to trade their blocks for others. This usually takes time as players break down blocks and replace them, but luckily a console command exists to meet this demand.
The /fill command, available on all current versions of Minecraft, can make it easier to replace blocks. By using it, players can save a lot of time manually breaking and placing blocks as replacements.
The syntax can be a bit tricky and changes depending on the version of Minecraft being played, but the payoff is definitely worth it.
Minecraft: How to use the /fill command on Bedrock Edition
Before players enter the /fill command, they will want to make sure their cheats are enabled. In Minecraft: Bedrock Edition, this is done from the world edit menu when creating a world or editing it from the in-game settings option. cheats” exists towards the bottom of the world edit menu, which you can click to activate.
Keep in mind, however, that this will disable achievements until they are disabled, so players looking for achievements/trophies should be aware.
Once cheats are enabled, Minecraft: Bedrock Edition players can open their in-game chat console and type in their command. The command syntax for replacing blocks (in Bedrock Edition specifically) is currently:
[tiledata] to replace
With so many arguments making up the syntax of this command, things can be a little confusing for those entering it for the first time. It’s worth breaking down each argument individually and what it requires:
- From – The starting x/y/z coordinates of the replacement block.
- For – The final x/y/z coordinates for the replacement.
- Tile name – The name of the tile block to replace the region with (e.g. minecraft:cobblestone for a cobblestone block)
- Tiledata – This is an optional block choice in case there are different variants for certain blocks in Tilename.
- To replace – Will replace all blocks in the region, including air blocks, allowing Minecraft players to spawn in blocks in empty and air-filled regions.
- Replace tile name – The name of the block to replace.
- Replace data value – Like Tiledata, an optional argument for different variants of a block.
An example of using the /fill command to replace blocks would be:
- /fill ~5 ~ ~8 ~ -20 ~ -1 ~ -20 minecraft:diamond_block 0 replace minecraft:grass 0
- This command would replace all grass blocks with diamond blocks at the specified coordinates between ~5, ~8 and ~-20, ~-1, ~-20.
The fill command takes some getting used to for those new to the command console, but it’s an invaluable asset not only to creators of Minecraft: Bedrock Edition, but other versions as well.