Modern namespaced IDs are recommended. This numerical form is only for old Java releases.
/give @p 50 1
Give command syntax by version
Java 1.13+
/give @p minecraft:torch 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 50 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:torch 1
Same namespaced ID (namespace optional)
Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.
How to Get Torch
Crafting Recipe
Charcoal
Stick
Crafting table recipe — makes 4 × Torch.
Coal
Stick
Crafting table recipe — makes 4 × Torch.
More Ways to Get It
Torches are crafted from one coal or charcoal placed above one stick, yielding four torches per craft. Each torch emits light level 14—one short of maximum—and in current versions hostile mobs spawn only at block light level 0, so a well-lit area is fully spawn-proofed. Torches also generate naturally in mineshafts, villages, strongholds, and several other structures.
Get coal by mining coal ore with any pickaxe, or smelt logs into charcoal in a furnace.
Place one coal or charcoal directly above one stick in any crafting grid to make four torches.
Place torches on top of or on the sides of solid blocks as you explore—space them so light never drops to zero in areas you want mob-free.