Use /fill <from x y z> <to x y z> tnt in Bedrock Edition, or /fill <from x y z> <to x y z> minecraft:tnt in Java Edition. The two coordinate triplets mark opposite corners of the rectangular area to fill.
Commands to fill an area with TNT
| Edition | Command format | Example around the command origin |
|---|---|---|
| Bedrock Edition | /fill <from x y z> <to x y z> tnt |
/fill ~-2 ~ ~-2 ~2 ~2 ~2 tnt |
| Java Edition | /fill <from x y z> <to x y z> minecraft:tnt |
/fill ~-2 ~ ~-2 ~2 ~2 ~2 minecraft:tnt |
The example uses relative coordinates to place TNT in a small volume around the command’s execution origin. It fills the region with TNT blocks; this syntax does not ignite them.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
Minecraft - Nintendo Switch | $29.83 | Buy on Amazon |
| 2 |
|
Minecraft: Switch Edition | $32.65 | Buy on Amazon |
| 3 |
|
Minecraft - Nintendo Switch [Digital Code] | $29.88 | Buy on Amazon |
| 4 |
|
Minecraft Legends Deluxe Edition | $49.00 | Buy on Amazon |
| 5 |
|
Minecraft - Nintendo Switch | $34.90 | Buy on Amazon |
As an Amazon Associate I earn from qualifying purchases.
How the coordinates work
Enter two positions, each in x y z order. They define opposite corners of the rectangular volume, and the command fills the region between them. A tilde (~) means the execution origin on that axis; a number after it specifies an offset. For example, ~-2 is two blocks below the origin on that axis, while ~2 is two blocks above it. See Microsoft’s Bedrock command introduction for the relative-coordinate explanation.
Free tools Windows power users keep installed
One-click scans. No signup required.
Permissions and edition notes
- Bedrock: Cheats must be enabled to use
/fill. Microsoft’s command list identifies its permission level as Game Directors. The documented command structure takes two positions followed by a block identifier; substitutingtntfills the region with TNT. See the Bedrock/fillreference and Bedrock command list. - Java: Use the namespaced block identifier
minecraft:tnt. Java command syntax has changed across releases; if the command does not match your version, check the in-game/help filloutput. The modern syntax is documented in the Java Edition Snapshot 25w02a notes.
Choose the fill area carefully
/fill replaces blocks across the specified region with the chosen block. Check both corners before running it, particularly in a world you want to preserve: a larger region can overwrite existing blocks and create many TNT blocks. For a straightforward fill, leave optional fill modes out of the command.
Quick Recap
Best Value
Rank #4
Rank #3
- Minecraft is a game about placing blocks and going on adventures
- Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles
- Play in creative mode with unlimited resources or mine deep into the world in survival mode, crafting weapons and armor to fend off the dangerous mobs
- Play on the go in handheld or tabletop modes
- Includes Super Mario Mash-Up, Natural Texture Pack, Biome Settlers Skin Pack, Battle & Beasts Skin Pack, Campfire Tales Skin Pack; Compatible with Nintendo Switch only
Rank #2
- Explore randomly-generated worlds and build amazing things from the simplest of homes to the grandest of castles
- Play in Creative Mode with unlimited resources or mine deep into the world in survival mode, crafting weapons and armour to fend off the dangerous mobs
#1 Best Overall
- Minecraft is a game about placing blocks and going on adventures
- Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles
- Play in creative mode with unlimited resources or mine deep into the world in survival mode, crafting weapons and armor to fend off the dangerous mobs
- Play on the go in handheld or tabletop modes
- Includes Super Mario Mash-Up, Natural Texture Pack, Biome Settlers Skin Pack, Battle & Beasts Skin Pack, Campfire Tales Skin Pack; Compatible with Nintendo Switch only
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.




