Minecraft wiki entry for Combat, associated text: The Ender Dragon will approach the player when they are at the exit portal frame, allowing successful melee attacks, as the Ender Dragon fires acid at the player. When the Ender Dragon is killed, it plays a unique death animation and drops an exit portal. When the player jumps in, the credits appear. The portal also has a dragon egg on the top, which can be used to break bedrock, and it can be collected if the player put a piston on one side of the egg and any block on the other. Then, activate the piston and the dragon egg drops. It's a great way to show off to your friends that you have killed the Ender Dragon.