Minecraft wiki entry for Achievement_guide, associated text: During the fight with the ender dragon, press use while holding a glass bottle when the ender dragon uses its breath attack or shooting dragon fireball.