Glass
Block

Glass

Namespaced ID
minecraft:glass
Legacy numeric ID
20(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 Glass.

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

Component syntax for Minecraft 1.21.8.

Block properties

Hardness
0.3
Blast resistance
0.3
Material
default
Diggable
Yes
Transparent
Yes
Light emitted
0 / 15
Light filtered
0 / 15
Block state IDs
562

Mining time

Break time per pickaxe tier (no haste, on ground, full air). Tools that can't harvest the block take 5× longer and won't drop the item.

PickaxeBreak timeDrops?
Wooden0.22s
Stone0.11s
Iron0.07s
Golden0.04s
Diamond0.06s
Netherite0.05s

Obtained by smelting

Items that smelt into Glass.

Red SandGlass
Furnace10s0.10 xp
SandGlass
Furnace10s0.10 xp

Used to craft

Across versions

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

Browse the full item list for a specific version:

About Glass

Where do you get Glass in Minecraft?

Glass can be obtained by smelting Red Sand and Sand.

What is the Minecraft ID for Glass?

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

How do you mine Glass in Minecraft?

Glass has hardness 0.3. Any tool works. Mining without the correct tool takes 5× longer and produces no drops.

What can you craft with Glass in Minecraft?

Glass is used as an ingredient in 38 recipes, including Beacon, Black Harness, Black Stained Glass, and Blue Harness. See the Used to craft section above for the complete list.