Before going to explain how to use the fill command in Minecraft, it is good that you explain its purpose, so that you can fully understand it.
As the name of the command suggests (which translates to “fill”), this one was created to be used to fill certain areas with blocks of your choice. It is incredibly advantageous during construction, especially considering the fact that the space limit (i.e. 32.768 blocks) is almost impossible to reach, unless you are talking about particularly large areas.
In addition, the / fill command can be used in various ways. For example, you can use it for replace blocks with others, for to empty completely a certain area or, again, to do to fall all blocks in a given space. In short, regardless of what you are trying to build, this command is very efficient in speeding up and optimizing the process.
All you need to use this command is to be able to see the coordinates so that you can use it correctly, since its application is based on them. In case you don't know how to view them, I refer you to my guide where I explain how to see the coordinates on Minecraft.
Also, make sure you are in a world that has i tricks activated, since the commands can only be used in worlds of this type. Again, if you don't know how to activate them, I invite you to consult my special guide where I show you how to activate the cheats on Minecraft.
Finally you will also need the Block ID which will be afflicted by the / fill command, which are nothing more than the original English names of the blocks. You can find them simply by searching on Google "Minecraft id", then adding the block name you need and the Minecraft version which you are playing between Java, available exclusively for PC, and the Bedrock, available on consoles, mobile devices and Windows 10. Of course, I encourage you to verify that the site is trusted before visiting it.
How to use the fill Minecraft command
The first thing you could use the / fill command for is to to fill a certain space with blocks of your choice. This is useful for creating large ones, for example mura or floors.
To do this, locate the initial and final coordinates of the space you want to fill, then open the chat pressing T on your keyboard (or onspeech bubble icon if you are working from a mobile device) and type the following command: if you are using the Java Edition of Minecraft, type / fill X1 Y1 Z1 X2 Y2 Z2 [block]. If, on the other hand, you have the Bedrock Edition, the command is / fill X1 Y1 Z1 X2 Y2 Z2 [block] 0.
Values X1, Y1 e Z1 must be replaced with the initial coordinate from which the game will start to carry out the command, while the values X2, Y2 e Z2 must be replaced with the final coordinate. Finally, the value [block] must be replaced with theBlock ID you want to insert.
By doing so, any block present in the space you have set with the command, regardless of which it is, will be replaced with the block you have just chosen.
If you want to create one instead outer layer to a certain structure, there is also a command that allows you to position blocks only in the external part of the coordinates that are set, with a thickness of a block, without affecting in any way everything that is inside the space. This type of command could be used to create protective layers, or for to close a certain area from the outside.
To use the command in the Java Edition of Minecraft, locate the initial and final coordinates, open the chat and type the following string: / fill X1 Y1 Z1 X2 Y2 Z2 [block] outline. For the Bedrock Editioninstead, the string to be inserted is the following: / fill X1 Y1 Z1 X2 Y2 Z2 [block] 0 outline.
After replacing the various values with the ones you want, as I explained to you in the previous paragraphs, the command will create an external space made up of the blocks you have chosen. Also, as I already mentioned in the previous paragraph, all the blocks present inside will remain unchanged: you can verify yourself by breaking a block of the space you just generated.
There is also a command to fill only the empty spaces in a certain space with the desired block. This takes all the blocks of "air", ie those where there is no material and replaces them with a block of your choice. This function is very useful, for example, to fill in gods holes that were formed by an explosion in a certain space, without also replacing the blocks already present within the area.
To use the command in question in the version Java of Minecraft, open the chat and type the following string: / fill X1 Y1 Z1 X2 Y2 Z2 [block] keep. For the version Bedrockinstead, the command is as follows: / fill X1 Y1 Z1 X2 Y2 Z2 [block] 0 keep.
Again you have to replace the values of the command with the ones you prefer and by doing this it will generate an area that will place the block you have chosen in all the spaces that were empty, leaving unchanged those that were already filled. For example, if the zone you generated included a tree, you will see that it will still be inside the space, unchanged.
And if you don't want to lose the blocks that are dematerialized by the command, there is a function for this too. This is a command it will do to fall all blocks that are destroyed during a “fill” in the form of releases (drop), useful to ensure that these are not lost.
This function is performed by typing inside the chat the command / fill X1 Y1 Z1 X2 Y2 Z2 [block] destroy as far as the Java Editionwhile for the Bedrock Edition is as follows: / fill X1 Y1 Z1 X2 Y2 Z2 [block] 0 destroy.
At this point, type i values of the area to which you want to apply the command and you will see that the blocks will be destroyed, falling to the ground and later replaced with new ones.
Keep in mind that destroyed blocks will drop drops equivalent to those that would be generated by breaking the aforementioned blocks with the appropriate tools. For example, a Stone block will drop a Crushed block, as if it were destroyed using a pickaxe, while a Glass block will drop no drops.
Also, this command may take a few more seconds to load, due to the generation of any drops that require more resources from the device you are playing Minecraft on. The delay depends on the size of the area in question and, consequently, on the amount of drops to be released.
If, on the other hand, you are looking for a command that allows you to replace certain blocks in an area without affecting the other blocks present nearby, the / fill command can do this too. Thanks to the function that I am about to illustrate, in fact, you will be able to select a space and replace or remove only the blocks you want inside it, so as not to have to do it manually and save you a lot of time. This command is especially useful for removing large masses of water o washed.
The command to execute inside the chat in Java Edition is as follows: / fill X1 Y1 Z1 X2 Y2 Z2 [block1] replace [block2]. For the Bedrock Editioninstead, you have to type the following command: / fill X1 Y1 Z1 X2 Y2 Z2 [block1] 0 replace [block2] 0.
In addition to the coordinate values, this command is slightly different from those illustrated in the previous paragraphs. In fact, you will also need to replace the value [block1] with l 'Block ID new you want to place with the command, along with the value [block2], in which you will have to type theBlock ID you want to replace.
At this point, if in the space you have selected there is the block you have specified in [block2], this will be replaced at each point where it is present within the same zone with the block requested in [block1].
The last interesting feature of the / fill command is the ability to use it without the need to display the coordinates. There is, in fact, a function that allows you to use it based on the current coordinates of the player, without taking into account those of the world itself.
To use this command in the Java Edition of Minecraft, open the chat and type the following string: / fill ~ X1 ~ Y1 ~ Z1 ~ X2 ~ Y2 ~ Z2 [block]. To use it in the Bedrock Editioninstead, you have to type the following: / fill ~ X1 ~ Y1 ~ Z1 ~ X2 ~ Y2 ~ Z2 [block] 0.
At this point, you just need to replace the values X1, Y1 e Z1 with the initial coordinates e X2, Y2 e Z2 with those final, leaving the tildes unchanged. Finally, it also replaces the value [block] with l 'Block ID in question, as usual.
By doing so, the game will refer to the player's coordinates when he gives the command and will execute the function in the same way as the commands mentioned in the previous paragraphs.
In addition, you can also issue the command starting exactly from coordinates in which you are located. To do this, if you are using the Java Edition of Minecraft you have to open the chat and type this string: / fill ~ ~ ~ ~ X2 ~ Y2 ~ Z2 [block]. For the Bedrock Edition, however, the command is as follows: / fill ~ ~ ~ ~ X2 ~ Y2 ~ Z2 [block] 0.
This command is particularly useful, as it saves the time that would be spent searching for the coordinates or measurements of a specific structure that you want to build.
Keep in mind that you can use tildi with all commands mentioned above in this tutorial, to refer to the player's position. Just place it before the values of each coordinate, as I showed you a moment ago.
Also, in case you are not aware of it, I warn you that the block of "air", which is a simple empty block, which you can use for remove blocks already filled. All you have to do to use it is to enter it in the commands I mentioned in the previous paragraphs, replacing it with the value [block1].How to use the fill command in Minecraft