Gunpowder
Item

Gunpowder

Namespaced ID
minecraft:gunpowder
Legacy numeric ID
289(1.8 & earlier)
Stack size
64
Edition
Java & Bedrock

/give command

Run in chat or a command block. Replace @p with a player name to target someone specific.

Command builder

Set the count, custom name, lore, and enchantments to generate a ready-to-paste /give command for Gunpowder.

Shown above the item in the inventory.
Italic text shown below the item name. One line per row.
1 compatible with Gunpowder.

Component syntax for Minecraft 1.21.8.

Obtained from

Mobs that drop Gunpowder when killed.

Used to craft

3 items use Gunpowder as an ingredient. Click any item to see its recipe.

Across versions

Legacy numeric ID
289 (pre-1.13, from 1.8)
Modern ID (1.13+)
minecraft:gunpowder (numeric IDs were removed in 1.13 — not usable in commands)
Editions
Java & Bedrock

Browse the full item list for a specific version:

About Gunpowder

Where do you get Gunpowder in Minecraft?

Gunpowder can be obtained by killing Creeper, Witch, and Ghast.

What is the Minecraft ID for Gunpowder?

The namespaced ID is minecraft:gunpowder, used in the /give command: /give @p minecraft:gunpowder 1. In legacy versions before 1.13, Gunpowder used the numeric ID 289. Numeric item IDs were removed in the 1.13 "Flattening" and no longer work in modern commands.

What can you craft with Gunpowder in Minecraft?

Gunpowder is used as an ingredient in 3 recipes, including Fire Charge, Firework Rocket, and TNT. See the Used to craft section above for the complete list.