PDF download Download Article PDF download Download Article

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

Type /fill into the chat. Make sure you include the forward slash or the command won't work. Then, type the coordinates of the starting and ending squares of the area that you want to fill. You can only use this command to build squares or rectangles.

  1. 1
    Find 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.
  2. 2
    Press 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.
    • 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.
    Advertisement
  3. 3
    Go 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.
  4. 4
    Go 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.
  5. 5
    Begin 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.
    • 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.
  6. 6
    Choose 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.
  7. 7
    Consider 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
  8. 8
    Observe 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
  9. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Is this possible to do in Education Edition?
    PuppyDog123ABC
    PuppyDog123ABC
    Community Answer
    Yes, you can do this in any edition unless you type the wrong coordinates.
  • Question
    Does this work on Bedrock Edition?
    PuppyDog123ABC
    PuppyDog123ABC
    Community Answer
    Yes, it does.
  • Question
    How do I remove blocks using commands?
    PuppyDog123ABC
    PuppyDog123ABC
    Community Answer
    Type "/fill x y z air" then it will be gone! (Don't type the speech marks.)
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • If the chat box is blocking the coordinates, press F3+D to clear the chat.
  • 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.
  • When reading the coordinates, the read X as east/west, Y as up and down, and Z as north/south.
Show More Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • The maximum number of blocks you can replace at once is 32768.
  • 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.
  • Do not summon large amounts of liquid or blocks with animation—like seaweed—unless you are sure your computer can handle that.
  • You cannot undo your mistakes, so be very careful when you type the coordinates.
Advertisement

About This Article

Zac Churchill
Co-authored by:
Minecraft Specialist
This article was co-authored by Zac Churchill. Zac Churchill is a Minecraft Specialist based in Davidson, North Carolina. Zac has played Minecraft for over 10 years and has extensive knowledge of how to play Minecraft and how the game has changed over the different versions. Specifically, Zac has expert experience in survival worlds, large builds on creative mode, and server design/upkeep. He graduated in 2023 with a BA in Sociology and English from Tufts University. This article has been viewed 267,691 times.
97 votes - 60%
Co-authors: 19
Updated: October 31, 2024
Views: 267,691
Categories: Minecraft Commands | Minecraft
Thanks to all authors for creating a page that has been read 267,691 times.

Reader Success Stories

  • Anonymous

    Anonymous

    Jun 5, 2023

    "Thanks, because I always fill manually, and it is annoying."
Share your story

Did this article help you?

Advertisement