Minecraft wiki entry for Defeating_the_ender_dragon, associated text: A alternative approach (for Java edition only) to defeating the Ender Dragon is based on trapping it in downflowing water while it is attempting to perch. This allows the player to easily attack the dragon until it dies, for example, by using a bow.