About Minecraft /fill & /setblock Generator
Place a single block with /setblock or fill a whole region with /fill, without guessing the syntax. Pick a block, add block states like facing or half, set your coordinates, and choose the mode. The command updates live for your version.
Coordinates can be absolute, like 100 64 -20, or relative with the tilde, like ~ ~ ~ for your current position or ~5 ~ ~ for five blocks away. The generator keeps the right id and state format for Java and Bedrock.
Fill modes explained
Replace swaps every block in the region, destroy drops the old blocks as items, keep only fills air, hollow fills the outer shell and clears the inside with air, and outline fills just the outer shell. Pick the one that matches what you are building.
Block states
Many blocks have states, like a stair facing a direction or a slab being top or bottom. Add the state key and value and the generator writes minecraft:oak_stairs[facing=east] on modern versions. On 1.8 to 1.12 these used numeric data values instead, which is flagged.
Relative coordinates
The tilde means relative to where the command runs. ~ ~ ~ is the exact spot, and you can offset each axis, like ~10 ~ ~10 for a 10 by 10 area from your position. This is the easiest way to build near yourself.
Frequently asked questions
- How do I fill an area with one command?
- Use /fill, set the From and To corners of the region, pick a block, and copy the command. Use relative ~ coordinates to fill near yourself.
- How do I make a hollow box?
- Choose /fill and set the mode to hollow. It fills the outer walls and clears the inside, perfect for rooms.
- How do I set a block facing a direction?
- Add a block state like facing = east. The generator writes the [facing=east] syntax on 1.13 and newer.
- Does it work on Bedrock?
- Yes. Block ids drop the namespace and block states use a different syntax, which the generator flags so you can verify in game.
- Is the fill command generator free?
- Yes, it runs entirely in your browser with no sign-up.