To spawn a big block of TNT in Minecraft with commands, use /fill ~-2 ~ ~-2 ~2 ~4 ~2 tnt. This creates a solid 5-by-5-by-5 cube of TNT centered around your position; enable cheats or have operator permission first, and use it only in a world where you are comfortable with the damage and lag it may cause.
The Command and What It Creates
The command uses Minecraft’s /fill command to place a rectangular region of blocks. The two sets of three coordinates mark opposite corners of that region. In the example, the first corner is two blocks west, at your current height, and two blocks north of your position. The second is two blocks east, four blocks above you, and two blocks south. Including both endpoints produces five blocks along each horizontal axis and five blocks vertically: 125 TNT blocks total.
The ~ symbol means a coordinate relative to your current position. For example, ~-2 means two blocks in the negative direction on that axis, while ~4 means four blocks above you on the vertical axis. The cube therefore appears around and above where you stand. If you want it on the ground, move to a suitable spot or adjust the vertical coordinates so the entire region is at or above the surface.
To make a wider but shorter block, change the coordinates. For instance, /fill ~-4 ~ ~-4 ~4 ~2 ~4 tnt makes a 9-by-3-by-9 rectangular block, assuming the area is within the command’s placement limits. Check that the selected region is clear: a fill command replaces blocks in its target area, rather than carefully building around them.
How to Enter the Command
Open the chat or command input for your edition, type the command, and submit it. In Java Edition, the usual chat key is T; on many Bedrock devices, open the chat or command interface using the platform’s controls. Commands begin with a forward slash. If the game reports that you lack permission, the world’s cheats or your player’s operator privileges may not be enabled.
- Make a backup or use a separate test world if the build matters.
- Move to an open area and decide where the cube should appear.
- Enter
/fill ~-2 ~ ~-2 ~2 ~4 ~2 tnt. - Inspect the result before igniting it. Use flint and steel on a TNT block only if you intend to set it off.
Coordinate directions can be confusing at first, so a small test fill is useful. Try a much smaller region, such as /fill ~ ~ ~ ~1 ~1 ~1 tnt, to confirm where the coordinates land. That command places a 2-by-2-by-2 group. Remember that the endpoints count, which is why coordinates from zero through one cover two blocks, not one.
Java and Bedrock Edition Differences
The basic /fill syntax and the block name tnt work in current Java and Bedrock versions, but command rules and interface details can vary by edition and version. Both editions require permission to use commands. In a single-player Java world, that generally means enabling cheats when creating the world or temporarily opening the world to LAN with cheats enabled. In Bedrock, cheats must be enabled in the world settings, or you need the appropriate permissions on a multiplayer server or Realm.
Enabling cheats in a Bedrock survival world can affect achievements for that world. Check the in-game warning before switching settings if achievements matter to you. On servers, permissions may be controlled by an administrator, and command availability can also depend on server configuration. If the command is rejected, confirm your edition, version, permissions, and spelling rather than assuming TNT cannot be filled.
Making the Block Bigger or Changing Its Shape
You can customize the dimensions by changing the two corner coordinates. To calculate the number of blocks along an axis, subtract the smaller coordinate from the larger one and add one, because both endpoints are included. Thus, coordinates from ~-5 to ~5 cover 11 blocks along that axis.
- Small test cluster:
/fill ~-1 ~ ~-1 ~1 ~2 ~1 tntcreates a 3-by-3-by-3 cube, or 27 blocks. - Wide slab:
/fill ~-5 ~ ~-2 ~5 ~1 ~2 tntcreates an 11-by-2-by-5 rectangular prism. - Single layer: Use the same vertical coordinate for both corners, such as
~and~, to place a flat layer.
Large fill operations have limits, and those limits can depend on edition, version, and server settings. If a very large command fails, reduce the dimensions or divide the area into smaller fills. Enormous TNT structures can also make a world slow or unresponsive when activated, even if the command successfully places them.
Placing TNT Is Not the Same as Igniting It
The fill command places TNT blocks; it does not automatically make them explode. A placed TNT block remains inert until activated. You can light it with flint and steel, or use another valid ignition method such as a redstone signal. Once ignited, TNT becomes an entity with a fuse and explodes after a short delay. Explosions can destroy terrain and damage nearby entities, and the game may struggle to process a large number of simultaneous or closely timed blasts.
A common misconception is that adding a word such as explode to the fill command will detonate the structure. That is not how /fill works: its job is to place or replace blocks. For a controlled experiment, ignite only a few blocks first, keep a safe distance, and avoid doing it in a valuable build or shared survival world. Explosion behavior and terrain damage can also be affected by game rules, server settings, and edition-specific mechanics.
Common Errors and Safer Alternatives
If you see an error, check that the command starts with /fill, the coordinates each have three values, and tnt is spelled correctly. A message about the region being too large means you should use smaller dimensions. A permission error means cheats or operator access are missing. If blocks appear in an unexpected place, remember that tildes are relative to your current position and that the vertical axis is the middle coordinate.
For testing a large build without risking an explosion, leave the TNT unlit. If you only need a visual display, consider using a harmless block such as red concrete instead. To clear a test structure, target the same coordinates with /fill and a replacement block such as air, but verify the region carefully before submitting: that command removes every block in its defined area, not just TNT.
Frequently Asked Questions
What is the command for a 10-by-10-by-10 TNT cube?
Use /fill ~ ~ ~ ~9 ~9 ~9 tnt. It creates a cube with 10 blocks along each axis, for 1,000 blocks, extending from your current position in the positive coordinate directions. Choose a clear location and consider whether your game can handle that many blocks.
Does the command explode the TNT immediately?
No. It places inactive TNT blocks. You must ignite them separately, and a large detonation can cause substantial world damage or performance problems.
Why does Minecraft say I do not have permission?
Commands may be disabled, or you may lack operator privileges. Enable cheats in a world you control or ask the server administrator for permission. Some worlds may apply additional restrictions.
Can I use this command in survival mode?
Yes, if commands are enabled and you have permission. The world’s game mode does not by itself prevent the command, but enabling cheats can affect achievements in Bedrock and may change the rules of a survival world.
How do I make TNT without replacing nearby blocks?/fill replaces blocks throughout its selected region. Choose an empty area, make a smaller test region, or place TNT with a different method. There is no general instruction in the basic command that automatically preserves every existing block inside the target area.