Bedrock /fill Command: Building Large Structures
Use the /fill command in Bedrock Edition to place, replace, and clear blocks in large areas. Includes syntax, modes, and examples.
Basic Syntax
The /fill command fills a rectangular region between two coordinates with a specified block. The syntax is:
/fill <from x> <from y> <from z> <to x> <to y> <to z> <block> [data] [mode]
The maximum fill volume in Bedrock Edition is 32,768 blocks per command (compared to Java's similar limit). If your selection exceeds this, you need to split it into multiple commands.
Fill Modes
Bedrock supports several fill modes that control how the command handles existing blocks:
- replace (default): Replaces all blocks in the area with the specified block.
- destroy: Replaces all blocks and drops them as items, as if broken by a player.
- keep: Only places blocks where air currently exists. Existing blocks are not changed.
- hollow: Fills the outer shell with the block and fills the interior with air.
- outline: Fills only the outer shell with the block, leaving the interior unchanged.
Common Examples
Basic Fill
/fill 0 64 0 10 70 10 stone # Fill a 11x7x11 area with stone
/fill ~ ~ ~ ~20 ~5 ~20 glass # Fill relative area with glass
/fill 0 -64 0 100 -64 100 bedrock # Create a bedrock platform
Clearing an Area
/fill 0 64 0 50 80 50 air # Remove all blocks in the area
/fill ~ ~ ~ ~30 ~30 ~30 air 0 destroy # Clear area and drop items
Building Walls and Floors
/fill 0 64 0 20 64 20 stone_bricks # Stone brick floor
/fill 0 64 0 0 74 20 stone_bricks # Stone brick wall
/fill 0 64 0 20 74 20 air 0 hollow # Hollow stone brick room
Replacing Specific Blocks
/fill 0 0 0 100 64 100 stone 0 replace dirt # Replace all dirt with stone
/fill ~ ~ ~ ~50 ~10 ~50 air 0 replace water # Remove water in an area
Block States
Bedrock Edition uses block states to specify block variants. The syntax uses square brackets:
/fill 0 64 0 10 64 10 log ["pillar_axis"="x"] # Sideways logs
/fill 0 64 0 10 64 10 wool ["color"="blue"] # Blue wool
/fill 0 64 0 10 64 10 stone_slab ["stone_slab_type"="smooth_stone"]
Practical Applications
- Clearing land: Use
/fillwith air to flatten terrain for building. - Creating buildings: Use hollow mode to quickly create rooms and structures.
- Landscaping: Replace blocks in bulk to reshape terrain.
- Mob farms: Clear and fill platforms for spawning pads efficiently.
- Water removal: Replace water with air to drain lakes or ocean monuments.
- Pixel art: Fill rows of colored blocks to create large-scale pixel art.
Differences from Java Edition
- Bedrock uses data values alongside block states, while Java uses only block states.
- The replace mode syntax differs: Bedrock uses
/fill ... replace <block>while Java uses/fill ... replace <filter>. - Block state syntax differs: Bedrock uses
["key"="value"]while Java uses[key=value](no inner quotes).
Tips
- Stand at one corner of your build area and use relative coordinates to the opposite corner.
- Use the
outlinemode to preview the boundaries of your fill area with visible blocks before committing. - If a fill is too large, break it into smaller sections. The 32,768 block limit is roughly a 32x32x32 cube.
- Use
/fillwithdestroymode when you want to harvest materials from a large area quickly.
Related Astroworld Resources
Related Guides
Overview of all Bedrock Edition commands, how they differ from Java, and tips for using the command system effectively.
10 min readLearn the Bedrock Edition /give command syntax, item IDs, data values, and practical examples for giving items to players.
7 min readMaster the /tp and /teleport commands in Bedrock Edition with syntax, relative coordinates, and practical teleportation examples.
6 min readLearn how to spawn mobs, items, and other entities in Bedrock Edition using the /summon command with positioning and naming.
6 min read