How to Replace Blocks in Minecraft
Have you ever stumbled upon a mountain made of Gravel, or the perfect flat area made just of Stone?
Or perhaps a body of Water is right in the middle of the area you wish to build in. So instead of getting right down to building you are forced to terraform the area first, and sometimes this takes hours of gameplay.
Not to mention certain blocks make it much harder to terraform than others, like Sand and Gravel which are affected by gravity.
For this the Fill command allows you to replace blocks in Minecraft without having to really move a single muscle. It’s the perfect solution to what would otherwise be grueling hard work.
Why Use the Fill Command?
There are some projects that are simply too much for a single person to handle. Replacing or terraforming an enormous mountain would require a lot of time and resources.
Not to mention, if you wish to set up a Realm or Server for your friends or the public you would need to do a lot of work.
The fill command can be used to replace any kind of block with any kind of other block. A mountain can be flattened by having all of its blocks replaced by Air.
A Sea biome can be drained instead of having to manually remove Water from the area. You can even use it as a base for a build!
The fill command can be easily utilized and can save any player a lot of time and patience.
We spoke about setting up a PVP free server before, and when it comes to setting up a place for a community, many people like to have things organized. A proper spawn area, a place for minigames, etc.
Some Servers even build whole cities and towns. Most would prefer to have a nice flat or unified area to build on, which is when the fill command becomes so useful.
How to Use the Fill Command in Minecraft
The fill command can seem like a mouthful at first glance, but I’m here to make it simple. It basically functions by encapsulating an area from one coordinate to another in a diagonal line.
The area you can change can be a flat layer that is a single block tall or a large cubical area.
The beginning of the command involves the exact coordinates of the starting point of the area you wish to fill or alternate. The following numbers are the ending coordinates of that same area you want to work on.
Think of it as if you are dragging a diagonal line of a cube that you want to make or work on.
/fill <x1> <y1> <z1> <x2> <y2> <z2> [block] [replace/outline/hollow/destroy/keep]
As you type in the command you will see the Text chat suggest to you all the possible blocks or items you can use in that area, as well as option on how to modify it. The block names all start with “minecraft:”, followed by the blocks name.
An example would be “minecraft:acacia_log”.
After you type that out the next thing you get are several different options on how you wish to affect the particular area you are working on.
- Replace: This command will replace all the existing blocks within the area with the block of your choice. Alternatively it can be used to replace particular blocks with a different kind of block, let’s say replacing every Iron Ore block with Diamond Ore.
- Outline: Like the name suggests, this creates an outline in the area. It will essentially create a large square that is completely hollow on the inside.
For this I suggest making the area at least 3 blocks tall and wide.
- Hollow: Using this command will make the affected area hollowed out of any blocks, leaving an empty square with blocks surrounding it. It is best used for areas that are already filled.
- Destroy: This command can be used to destroy all blocks in a certain area as if you had mined them.
- Keep: Keep can be used alongside the other commands if you wish to keep a particular type of block from being affected in the area you’re working on. You can be destroying a Stone mountain, but keeping all the Coal Ore from being removed.
How to Check Coordinates
To get the fill command to work, we see that we need to know the exact coordinates of the area we wish to work on.
Not only that, but we also need to know what blocks are part of this area so that we can use the command correctly.
To check coordinates on Java Edition of Minecraft is really easy. Once you load into your world simply press the F3 button on your keyboard. Doing so will suddenly display a whole load of text and information.
If your resolution is low the amount of information can simply cover the entire screen.
This is where you can read all relevant information about your game and the environment around you. Most importantly, this is where you find your current coordinates.
They will be always located on the left side of the screen, displayed as X (length), Y (height), and Z (width). The numbers will always display the exact block you are standing on top of.
Knowing how to pull up your coordinates can be very useful in the case you can not make a copy of a Map. This way you can write down and find your base and other important locations easier until you have the items you need for the Maps.
So to find your starting and ending coordinates you can either walk from one end to the other or calculate it approximately.
For Bedrock Edition you have to set this in your world options, rather than pressing a button. This will only display the coordinates instead of all the other information you usually get on Java Edition.