Butterfly

Butterflies are passive mobs that spawn in forested biomes.

Appearance
Butterflies come in 6 different variants:
 * An orange-winged variant with black veins and margins on its wings, a dark brown body, black eyes, legs, and antennae, and white speckles on its body and wings (based on the monarch butterfly).
 * A yellow-winged variant with black veins and margins on its wings, pronged hind wings with blue and orange spots on the margins, a yellow body with a dark brown stripe on its thorax, black eyes and antennae, and yellow legs with black tips (based on the Eastern tiger swallowtail butterfly).
 * A purple-winged variant with black veins, thick black margins and white spots on its wings, a pair of orange markings on its hindwings, a white body with dark brown stripes on its thorax and head, black eyes and antennae, and white legs with black tips (based on the purple emperor butterfly).
 * A blue-winged variant with thick black margins on its wings, reddish-orange spots on the margins of its hindwings, a dark brown body, and black eyes, legs, and antennae (based on the common blue morpho butterfly).
 * A yellow-winged variant with brown margins on its wings, a pair of large, dark brown spots on its forewings and a pair of smaller, orange spots on its hindwings, a brown body with yellow speckles on its thorax and abdomen, black eyes, and brown antennae and legs (based on the clouded sulphur butterfly).
 * A brown-winged variant with black margins on its wings, reddish-orange stripes down the middle of its forewings and on the tips of its hindwings, white speckles near its stripes, a dark brown body, black eyes, and dark brown antennae and legs (based on the red admiral butterfly).

Behavior
Butterflies will aimlessly fly around in a similar manner to bats. When they spot a flower nearby, they will fly over to it and quickly pollinate it, emitting pollen particles from their bodies once they are finished. Occasionally, they will perch on the ground or on walls; upon doing so, they will stay still until a player comes by, at which point they will fly away.

Butterflies can be caught by using a glass bottle on them. Bottles with butterflies inside them have a special tooltip that indicates their variant, size, and whether or not they have collected nectar.

If a butterfly is exposed to rain, it will be unable to take to the air, helplessly flapping in place and taking damage every time a certain amount of time passes; if it was flying around before it was exposed to rain, it will slowly float down to the ground. While in the rain, butterflies will attempt to seek out shelter to protect themselves; upon finding a hiding spot, they will immediately perch.

History

 * 10.0.0:
 * Introduced.

Trivia

 * Butterflies are one of the few mobs in the mod to vary in size, alongside jellyfish, songbirds, sharks, eels, whales, and dragonflies.
 * In extension, they are one of the few mobs in the mod to vary in size even within variants, alongside jellyfish and dragonflies.