This article was co-authored by Mogswamp. Mogswamp is a Minecraft expert and content creator based in Seattle, WA. With nearly 20 years of experience, Mogswamp has created content on a variety of channels since 2007. He began creating Minecraft content in 2012 and is known as the King of Minecraft Superflat, with over 2.95M subscribers on YouTube. In addition, Mogswamp streams from his 14-year old Superflat world every Wednesday. His channel focuses on the specific challenge and joy of playing on Superflat, emphasizing how Minecraft's open-ended nature can foster creativity during gameplay.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 320,380 times.
Everyone hates long, boring days where the only thing to do is lay out a road or roof. Isn’t Minecraft supposed to be fun? If you want a new, faster way to build large structures, /fill is a simple Minecraft command that can solve this problem. This wikiHow tutorial will explain how to use /fill and save yourself a ton of time!
Using the Fill Command in Minecraft
Minecraft expert Mogswamp says to type /fill into the chat and then add the coordinates of the starting and ending squares of the area that you want to fill. Make sure you include the forward slash or the command won't work. Just know you can only use this command to build squares or rectangles.
Steps
-
1Find a spot to build. An ideal spot would be flat and open with plenty of space.
- You can technically build anywhere and use /fill to flatten the land out.
- Know that the /fill command can only build squares or rectangles.
-
2Press the F3 key on your keyboard once you’ve found your spot. This will show you the coordinates of your position in the game. Look for the X, Y, and Z coordinates.[1]
- You will be inputting these coordinates into the /fill command.
- You can also pull up your coordinates by pressing the FN and F3 keys at the same time.[2]
Advertisement -
3Go to one of the corners of the rectangle you plan to create using the /fill command. This will be one of your “endpoints” in the command. Write down the coordinates of the block on which you are standing, as this is the first part of your rectangle.
-
4Go to the opposite corner of the rectangle you wish to create. For example, if you’re on standing at the bottom left corner, walk to the top right corner.
- You could also do this with a cube. For example, if you’re standing at the back top left corner, move to the front bottom right.
-
5Begin typing the command. First, type /fill into the chat. The forward slash is required to make the command work. Next, type the XYZ coordinates you wrote down previously. Next, type the XYZ coordinates of the block on which you are standing now.[3]
- You can also do /fill <first set of coordinates> ~ ~ ~ <block> to fill from the first set to where ever you are standing without manually inputting coordinates.
- <block> is a stand-in for what you’re going to do in the next step. Don’t type it in the command. Don’t submit the command yet either.
-
6Choose a block to fill the area. Press F3 and H at the same time on your keyboard. Now you can see the Block IDs. Select your block from the creative menu. Go into your inventory and hover over the block you desire. Under the block's name, there should be something in gray text that says "yourobject". Replace "yourobject" with the ID of the block you wish to place.
- You can also type "minecraft:" and then hit tab until you see your block. You can type the first few letters of your block (like you would while searching for it in the creative inventory) and hit tab to narrow down the search.
-
7Consider using optional modifiers. These modifiers include:
- hollow: makes the inside of the rectangle hollow
- replace: replaces all blocks of one type in the area with another, ie /fill <set 1> <set 2> minecraft:diamond_block replace minecraft:clay
- destroy: not only replaces all blocks, but breaks them and turns them into items you can pick up as if they were mined.
- keep: fills air and leaves blocks inside the rectangle unaffected
- outline:outlines the blocks already placed with the block you choose
-
8Observe the picture above. It is an example combining all of the previous information.
- This is an example of a correctly typed command. Be sure to have the /fill, the two sets of coordinates, and the block you wish to use.
- Example typed: /fill -299 64 -110 -334 79 -138 minecraft:diamond_block
Community Q&A
-
QuestionIs this possible to do in Education Edition?
PuppyDog123ABCCommunity AnswerYes, you can do this in any edition unless you type the wrong coordinates. -
QuestionDoes this work on Bedrock Edition?
PuppyDog123ABCCommunity AnswerYes, it does. -
QuestionHow do I remove blocks using commands?
PuppyDog123ABCCommunity AnswerType "/fill x y z air" then it will be gone! (Don't type the speech marks.)
Video
Tips
-
If you have a hard time remembering coordinates, you can type the first set into chat or the command and return to them with the up arrow key to see them again.Thanks
-
When reading the coordinates, the read X as east/west, Y as up and down, and Z as north/south.Thanks
-
If the chat box is blocking the coordinates, press F3+D to clear the chat.Thanks
Warnings
- Only let trusted people use this command. Someone with bad intentions can fill an area with air or TNT to erase your builds or damage the world.Thanks
- Do not summon large amounts of liquid or blocks with animation—like seaweed—unless you are sure your computer can handle that.Thanks
- The maximum number of blocks you can replace at once is 32768.Thanks
- You cannot undo your mistakes, so be very careful when you type the coordinates.Thanks
References
- ↑ https://www.digminecraft.com/getting_started/coordinate_system.php
- ↑ Zac Churchill. Minecraft Specialist. Expert Interview
- ↑ https://www.digminecraft.com/game_commands/fill_command.php
- https://www.minecraft.net/
- http://minecraft.gamepedia.com/Minecraft_Wiki
About This Article
Reader Success Stories
-
"Thanks, because I always fill manually, and it is annoying."








