Dragon Egg

The dragon egg is a decorative block or a "trophy item", and is the rarest item obtainable in the game, as it generates once (or twice $$).

Obtaining
$$, the dragon egg is available in the Creative inventory. Across both Java and Bedrock editions, it can be obtained with or the  command, or placed in the world with commands such as  and.

Breaking
$$, a single dragon egg is generated on top of the exit portal when the first ender dragon is defeated. $$, two dragon eggs generate on top of the exit portal; one generates when the first ender dragon is defeated, while the other generates when the second ender dragon is defeated. The dragon egg usually cannot be mined directly, as trying to do so causes it to teleport within a 31×15×31 volume centered on the egg, with locations toward the center more likely. If all air blocks in that area are filled so there is nowhere for the egg to teleport to, or if it fails to find an air block after 1,000 attempts at teleporting, it can be mined. The dragon egg is a gravity-affected block, and drops as an item when pushed by a piston or when it falls onto a block less than a full block tall, such as a torch or a bottom slab.

When destroyed by an explosion, the block always drops as an item.

The dragon egg is not immune to destruction by the ender dragon, despite being produced by her.

Usage


The dragon egg, if there is no block below it, falls until it lands on the next available block. When it is being affected by gravity and falling, it exhibits a smooth falling animation.

It does not suffocate mobs or players when it falls and covers them, nor does it crush mobs or players like anvils and stalactites do.

The dragon egg can be placed on a non-solid block without falling.

Like other falling blocks, when the dragon egg is floating, it has black particles falling from it.

Light source
The dragon egg emits a light level of 1.

Teleporting
To cause the egg to teleport, press while in Survival or Adventure mode (press  in Creative). It teleports to an air block nearby (up to seven blocks vertically and fifteen blocks horizontally), creating the same particles as an enderman. It may teleport into the air and subsequently fall to the ground since it forcefully obeys gravity.

If all available air blocks are filled, it is possible to break the block.

Dragon egg teleportation lacks teleportation sounds.

The Void
In the case that egg teleportation finds an invalid location such as a negative y value, it makes an additional attempt to find a valid location, centered on the invalid location rather than the original position.

ID




Trivia

 * The writer of the Minecraft comic WonderCraft, Samcube, was requested by Mojang to create official Minecraft posters. In a part of these works, one can see an area with an ender dragon and a chicken on top of a huge mushroom. In the same scene, the dragon egg is visible near the chicken.
 * If the dragon egg teleports and falls into the portal, it spawns in the Overworld at the world spawn.