Pixel art illustration of a dragon egg in chunky voxel game style
Minecraft Java Item ID

Dragon Egg ID

The dragon egg is a unique trophy block dropped on the exit portal after the first Ender Dragon defeat. It teleports when clicked and must be collected with a piston or torch trick.

✓ Verified for Java Edition 1.21.11
Namespaced item ID minecraft:dragon_egg

Dragon Egg Item Facts

Maximum stack64
Available inSurvival and Creative
Historical numerical ID122

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Dragon Egg

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:dragon_egg 1

Customize this command →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 122 1

Give command syntax by version

Java 1.13+
/give @p minecraft:dragon_egg 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 122 1 0
Numerical ID + data value

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 Dragon Egg

Finding Dragon Egg

  • Mine Dragon Egg blocks.

Prefer commands? Jump back to the give command matrix above to get Dragon Egg instantly.

Dragon Egg in Minecraft: How to Collect the One Per World Trophy

Quick answer: Use minecraft:dragon_egg in Java Edition commands. The dragon egg appears on the exit portal after your first Ender Dragon kill; it teleports when clicked, so collect it with the torch or piston trick, because Java worlds get only one.

Collecting the egg without losing it

Clicking or punching the egg makes it teleport to a nearby spot, which can knock it into the void. Instead, hit it once to move it onto the portal rim, then dig underneath, place a torch two blocks below, and break the supporting block so the egg falls onto the torch and drops as an item.

A piston works just as well: place a piston facing the egg and activate it once to push the egg off its block, where it drops for pickup. Either way, pick it up immediately; it is the only dragon egg the world will ever generate.

  • Torch trick: egg falls onto a torch and becomes an item.
  • Piston trick: one push drops the egg safely.
  • Never click it near the void; teleports are random within range.

What the dragon egg is actually for

The dragon egg is a pure trophy: it has no crafting recipe and no functional use in vanilla Java Edition. Its value is symbolic proof that you defeated the Ender Dragon, so most players display it on a pedestal in a base or museum room.

For respawning the dragon you need end crystals, not the egg. If the egg is lost to the void or a despawn, the only recovery in a Java world is creative mode or /give @p minecraft:dragon_egg.

Build With Dragon Egg

minecraft:dragon_egg is in the reviewed block catalog. Open a command tool with this ID already selected, then adjust the coordinates in the tool.

Need a different material? Browse Minecraft Block IDs or compare the related blocks below.

Dragon Egg Command Examples

  • Give 1 to nearest player: /give @p minecraft:dragon_egg 1
  • Give 1 to yourself: /give @s minecraft:dragon_egg 1
  • Give to a specific player: /give PlayerName minecraft:dragon_egg 1
  • Clear from inventory: /clear @p minecraft:dragon_egg

Dragon Egg FAQ

What is the item ID for Dragon Egg?

The item ID for Dragon Egg is minecraft:dragon_egg. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.

What is the numerical ID for Dragon Egg?

Dragon Egg has the historical numerical ID 122, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:dragon_egg instead.

How do I give myself Dragon Egg in Minecraft?

Open the chat window and run /give @p minecraft:dragon_egg 1 to give the nearest player one Dragon Egg. Replace @p with a player name to target someone else.

How many Dragon Egg can stack in one slot?

Dragon Egg stacks up to 64 per inventory slot.

How do you pick up the dragon egg in Minecraft?

Make it fall onto a torch or push it with a piston. Clicking the egg only teleports it. Break the block beneath with a torch placed two blocks lower, and the egg drops as a collectible item.

Can you get more than one dragon egg?

In Java Edition each world generates exactly one dragon egg, from the first Ender Dragon kill. Revived dragons do not produce new eggs, so losing it means using creative mode or /give @p minecraft:dragon_egg to replace it.

What can you do with a dragon egg?

Nothing functional in vanilla survival: it is a decorative trophy block. It cannot hatch a dragon and has no recipe. Respawning the Ender Dragon requires four end crystals placed on the exit portal instead.

Sources and Data Review

Item facts were reviewed for Java Edition 1.21.11 on .

Related Decoration Blocks

Item ID: minecraft:torch
Item ID: minecraft:glowstone
Item ID: minecraft:lantern
Item ID: minecraft:ladder
Item ID: minecraft:flower_pot
Item ID: minecraft:painting
Item ID: minecraft:white_banner
Item ID: minecraft:glass_pane