How To Use The Fill Command In Minecraft
This Minecraft tutorial explains how to use the /fill command with screenshots and step-by-step instructions.
You can fill an area or outline with a particular block using the /fill command in Minecraft. Let’s explore how to use this cheat .
The /fill command is available in the following versions of Minecraft:
Platform |
---|
Yes |
* The version that it was added or removed, if applicable.NOTE: Pocket Edition , Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Fill Command In Minecraft Java Edition
In Minecraft Java Edition 1.13, 1.14, 1.15 and 1.16, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < from> < to> < block>
To replace one type of block in a region with another type of block:
/fill < from> < to> < block> replace < newTileName>
In Minecraft Java Edition 1.8, 1.9, 1.10, 1.11 and 1.12, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < x1> < y1> < z1> < x2> < y2> < z2> < block>
To replace one type of block in a region with another type of block:
/fill < x1> < y1> < z1> < x2> < y2> < z2> < block> replace < newTileName>
Definitions
Minecraft: How To Use The / Fill Command On The Bedrock Edition
Before players enter the / fill command, they should ensure that their cheats are enabled. In Minecraft: Bedrock Edition this is achieved through the world edit menu when creating a world or changing it through the in-game settings option. At the bottom of the world editing menu there is a small slider labeled Enable Cheats that can be clicked to activate.
Keep in mind, however, that this will disable achievements until disabled, so players should be careful when looking for achievements / trophies.
Once the cheats are activated, Minecraft: Bedrock Edition players can open their in-game chat console and enter their command. The syntax of the command to replace blocks is currently:
- / fill substitute
With so many arguments making up the syntax of this command, it can be a little confusing for those first typing it. Its worth breaking down each argument individually and what it requires:
- from The start coordinates x / y / z for the substitute block.
- to The final x / y / z coordinates for the replacement.
- Tile name The name of the tile block to replace the region with
- Tile data This is an optional block selection if there are different variants for certain blocks in Tilename.
- Substitute Replaces all blocks in the region, including air blocks, so Minecraft players can spawn in blocks in empty, air-filled regions.
- Replace tile name The name of the block to be replaced.
- Replace data value Like Tiledata, an optional argument for different variants of a block.
Don’t Miss: How To Make Scutes In Minecraft
Example In Java Edition 114 115 And 116
To first align the current xyz position in the block grid and then summon a cat if the entity running the command is within 5 blocks of the coordinate :
To anchor to eye level and then display the flame particle that is 1 block in front of the entity executing the command:
/execute anchored eyes run particle minecraft:flame ^ ^ ^1 0 0 0 0 10
To give all players 8 golden apples:
To summon a lightning bolt at all creepers:
To teleport all players to the coordinates :
Execute Command In Minecraft Education Edition
In Minecraft Education Edition, there are 2 syntaxes for the /execute command.
To execute a command on behalf of an entity:
/execute < origin> < position> < command>
To execute a command on behalf of the entity, only if a specific block is detected at < detectPos> :
/execute < origin> < position> detect < detectPos> < block> < data> < command>
Definitions
- origin is the name of a player who will run the command.
- position is the x y z coordinate to run the command from. If a relative value is provided, then the position is relative to the entity.
- detectPos is the x y z coordinate to detect the block.
- block is name of the block to detect at detectPos. If detected, then the command will be executed.
- data is the data value of the block to detect at detectPos. If detected, then the command will be executed.
- Edu
Don’t Miss: What Is The Random Tick Speed In Minecraft
Fill Command In Minecraft Xbox One Edition
In Minecraft Xbox One Edition, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < from> < to> < tileName>
To replace one type of block in a region with another type of block:
/fill < from> < to> < tileName> replace < replaceTileName> < replaceDataValue>
Definitions
- from is the starting x y z coordinate for the fill region .
- to is the ending x y z coordinate for the fill region .
- tileName is name of the block to fill the region.
- tileData is optional. It is the data type or variation of the block if more than one type exists for that tileName.
- replace will replace all blocks in the fill region, including air.
- outline is optional. It will replace blocks on the outer edge of the fill region, but does not replace the inner blocks.
- hollow is optional. It will replace blocks on the outer edge of the fill region, and replaces inner blocks with air.
- keep is optional. It will replace only air blocks in the fill region.
- destroy is optional. It will replace all blocks in the fill region, including air. Replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.
- replaceTileName is the name of the block that will be replaced.
- replaceDataValue is the variation of the block to be replaced if more than one type exists for that replaceTileName.
How Do Minecraft Commands Work
After selecting yes and loading up the world, youll need to press the C key to pull up the command bar, which is where youll be inputting all your cheats and commands. Any command you enter in single player will need to be prefixed by forward slash multiplayer commands will not work with this prefix.
Don’t Miss: How To Turn Off Narrator On Minecraft Xbox One
How To Replace Blocks In Minecraft: Bedrock Edition
Building something in Minecraft can take quite a bit of time, and sometimes one’s block choice ends up not being ideal and players need to swap their blocks out for others. This usually takes time while players break down the blocks and replace them, but fortunately a console command exists to meet this demand.
The /fill command, available on all current Minecraft versions, can make replacing blocks a breeze. By using it, players can save a significant amount of time breaking and manually placing blocks in replacement.
The syntax can be a little tricky, and changes depending on which version of Minecraft is being played, but the payoff is certainly worth it.
Fill Command In Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < from> < to> < tileName>
To replace one type of block in a region with another type of block:
/fill < from> < to> < tileName> replace < replaceTileName> < replaceDataValue>
Definitions
- from is the starting x y z coordinate for the fill region .
- to is the ending x y z coordinate for the fill region .
- tileName is name of the block to fill the region.
- tileData is optional. It is the data type or variation of the block if more than one type exists for that tileName.
- replace will replace all blocks in the fill region, including air.
- outline is optional. It will replace blocks on the outer edge of the fill region, but does not replace the inner blocks.
- hollow is optional. It will replace blocks on the outer edge of the fill region, and replaces inner blocks with air.
- keep is optional. It will replace only air blocks in the fill region.
- destroy is optional. It will replace all blocks in the fill region, including air. Replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.
- replaceTileName is the name of the block that will be replaced.
- replaceDataValue is the variation of the block to be replaced if more than one type exists for that replaceTileName.
You May Like: Minecraft Purple Banner Designs
Execute Command In Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, there are 2 syntaxes for the /execute command.
To execute a command on behalf of an entity:
/execute < origin> < position> < command>
To execute a command on behalf of the entity, only if a specific block is detected at < detectPos> :
/execute < origin> < position> detect < detectPos> < block> < data> < command>
Definitions
- origin is the name of a player who will run the command.
- position is the x y z coordinate to run the command from. If a relative value is provided, then the position is relative to the entity.
- detectPos is the x y z coordinate to detect the block.
- block is name of the block to detect at detectPos. If detected, then the command will be executed.
- data is the data value of the block to detect at detectPos. If detected, then the command will be executed.
- command is any that you want the entity to execute such as , , , , , , , , etc.
Command In Minecraft Java Edition
In Minecraft Java Edition 1.13, 1.14, 1.15, 1.16 and 1.17, the syntax to change water to air using the is:
/fill < x1> < y1> < z1> < x2> < y2> < z2> air replace water
In Minecraft Java Edition 1.11 and 1.12, the syntax is:
/fill < x1> < y1> < z1> < x2> < y2> < z2> air 0 replace water
Definitions
- x1 y1 z1 is the starting coordinate for the fill region .
- x2 y2 z2 is the ending coordinate for the fill region .
Don’t Miss: What Does Quick Charge Do In Minecraft
Example In Java Edition 113 114 115 And 116
To fill a 11x1x11 area with quartz block in Minecraft 1.13, 1.14, 1.15 and 1.16:
/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 quartz_block
To build a solid structure out of dark oak wood planks:
/fill ~1 ~0 ~1 ~10 ~10 ~10 dark_oak_planks
To build a large hollow cobblestone structure :
/fill ~1 ~-1 ~1 ~10 ~5 ~10 cobblestone hollow
To mine a region, by replacing all blocks in the area with cobblestone starting 10 blocks deep up to ground level , that is 5 blocks away from you in all horizontal directions:
/fill ~-5 ~-10 ~-5 ~5 ~-1 ~5 cobblestone destroy
To replace all water with air in the fill region with a starting coordinate of ~10 ~0 ~40 and an ending coordinate of ~-40 ~-3 ~-40:
/fill ~10 ~0 ~40 ~-40 ~-3 ~-40 air replace water
Stairs Facing A Direction Using /fill
- #1Mar 23, 2015
The title says it, I want to /fill some stairs but they must face north.
How do I do it?
6 south top straight7 north top straight
other options for shape are outer_right, outer_left, inner_right, inner_left. “outer_” applies when half is bottom, “inner_” applies when half is top.
There are only 16 id’s for stairs, 0-15 inclusive. You can’t use the id’s to set the shape, it’s always straight.
Probably a way to set the attributes with JSON but I haven’t figured it out yet.
Don’t Miss: What Is Smite For In Minecraft
Setting Up The Reward Command Block
Letââ¬â¢s add a third block to set a command to reward the player for placing a block in the right spot.
Once again, this command will only activate if the previous command succeeded, meaning both the diamond block was present and the player hasn’t received the reward yet.
Example In Education Edition
To fill a 5x1x5 area with diorite in Minecraft Education Edition:
/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 stone 3
To build a solid structure out of chiseled sandstone:
/fill ~1 ~0 ~1 ~10 ~10 ~10 sandstone 1
To build a large hollow polished andesite structure :
/fill ~1 ~-1 ~1 ~10 ~5 ~10 stone 6 hollow
To mine a region, by replacing all blocks in the area with dirt starting 8 blocks deep up to ground level , that is 4 blocks away from you in all horizontal directions:
/fill ~-4 ~-8 ~-4 ~4 ~-1 ~4 dirt 0 destroy
To replace all grass blocks with gold blocks in the fill region with a starting coordinate of ~8 ~ ~12 and an ending coordinate of ~-25 ~-1 ~-20:
/fill ~8 ~ ~12 ~-25 ~-1 ~-20 gold_block 0 replace grass 0
Also Check: How Do You Make A Trapdoor In Minecraft
Learn How To Use /fill Command In Minecraft Ps4/xbox/pe
Minecraft is one of the most enjoyable games one can spend time playing. The game suits both single-player and multiplayer gameplay, so it is a prime opportunity to spend time with your friends. In this article, we are going to take a look at the game and learn how To Use /Fill Command In Minecraft Ps4/Xbox/PE. Lets dive right in:
Minecraft
Minecraft is currently going through an extended update process, that has been broken down into two parts. The Caves and Cliffs update has been divided into two parts due to the sheer amount of content that is going to be added to the game. The first part of the 1.17 update has already been released and contains new additions like mobs, blocks, etc.
The second part of the 1.18 update will contain the bulk of the contents, related to the name itself. This update will bring with it new biomes, deeper caves, and taller mountains, the likes that havent been seen in the game before. Other additions include new blocks, goat horns, and scary new mobs.
How To Use /Fill Command In Minecraft Ps4/Xbox/PE
Want to learn how to use the /Fill Command in Minecraft? You have come to the right place. Here are some steps you can follow in order to learn how to do the same:
- Work out where you want your Fill to be. Pick out a corner on the ground you want to Fill, then note down the coordinates.
- You also need to pick out the coordinates for the opposite end of the area you want to use Fill in.
Fill Command In Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < from> < to> < tileName>
To replace one type of block in a region with another type of block:
/fill < from> < to> < tileName> replace < replaceTileName> < replaceDataValue>
Definitions
- from is the starting x y z coordinate for the fill region .
- to is the ending x y z coordinate for the fill region .
- tileName is name of the block to fill the region.
- tileData is optional. It is the data type or variation of the block if more than one type exists for that tileName.
- replace will replace all blocks in the fill region, including air.
- outline is optional. It will replace blocks on the outer edge of the fill region, but does not replace the inner blocks.
- hollow is optional. It will replace blocks on the outer edge of the fill region, and replaces inner blocks with air.
- keep is optional. It will replace only air blocks in the fill region.
- destroy is optional. It will replace all blocks in the fill region, including air. Replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.
- replaceTileName is the name of the block that will be replaced.
- replaceDataValue is the variation of the block to be replaced if more than one type exists for that replaceTileName.
Recommended Reading: How To Make Potion Of Decay
Fill Command In Minecraft Education Edition
In Minecraft Education Edition, there are 2 syntaxes for the /fill command.
To fill a region with a type of block:
/fill < from> < to> < tileName>
To replace one type of block in a region with another type of block:
/fill < from> < to> < tileName> replace < replaceTileName> < replaceDataValue>
Definitions
- from is the starting x y z coordinate for the fill region .
- to is the ending x y z coordinate for the fill region .
- tileName is name of the block to fill the region.
- tileData is optional. It is the data type or variation of the block if more than one type exists for that tileName.
- replace will replace all blocks in the fill region, including air.
- outline is optional. It will replace blocks on the outer edge of the fill region, but does not replace the inner blocks.
- hollow is optional. It will replace blocks on the outer edge of the fill region, and replaces inner blocks with air.
- keep is optional. It will replace only air blocks in the fill region.
- destroy is optional. It will replace all blocks in the fill region, including air. Replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.
- replaceTileName is the name of the block that will be replaced.
- replaceDataValue is the variation of the block to be replaced if more than one type exists for that replaceTileName.
TIP:
Setting Up The /testforblock Command Block
Since the second block is set to Conditional, this new block will only execute if the first command block succeeds, meaning the diamond block was present. This command checks to see if the player hasn’t already received the reward.
Read Also: How To Make A Crossbow In Minecraft