Minecraft wiki entry for Defeating_the_ender_dragon, associated text: After the dragon disappears, experience orbs rain from the sky. These orbs can take the player from level 0 to level 68, which is worth 12,000 experience points. Some of the orbs may fall into the portal, so run a few laps around the portal and then sneak on the rim of the portal to grab some more. Since it takes progressively more experience to gain a level at higher levels, the player gains enough to make over ten level 30 enchantments. The best time for the player to enchant extra equipment is as soon as they go back home, in case they die and lose all of the precious levels they have earned (unless you have a lot of experience farms to get more levels than that).