Minecraft wiki entry for Dragon_Egg, associated text: In Java Edition, a single dragon egg is generated on top of the exit portal when the first ender dragon is defeated. In Bedrock Edition, two dragons 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.[1] 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.