Minecraft wiki entry for Defeating_the_ender_dragon, associated text: Alternatively, if the player has a piston and a source of redstone (such as a lever), place the piston facing the egg and power it with the redstone source. The egg still breaks as a collectible item. To prevent the egg from falling into the portal, cover the portal with blocks.