Nightfly

Nightflies are hostile flying melee mobs that spawn naturally in the Overworld.

Spawning
Nightflies spawn naturally in most biomes in the Overworld.

They will only spawn during the night, or in places with a light level lower than 8. Their spawning can be prevented by placing torches or other lighting blocks nearby to raise the light level above 7.

Despite being flying creatures, Nightflies still spawn on the ground before flying up.

Behavior
Nightflies are flying melee mobs that will follow targets at head height through the air. As flying mobs do not have to avoid ground obstacles, they are able to path directly towards their targets, only avoiding blocks in the way in midair.

They are aggressive, and will attack nearby players within 36 blocks without provocation. If attacked by another entity, they will retaliate and continue targeting that entity.

Staying outside of their targeting range will prevent them from attacking or targeting entities.

Nightflies follow a somewhat erratic flight path as their unbalanced wings cause them to bounce up and down while hovering and flying.

Classification
Nightflies are classified as Arthropods, and as such the effects of Bane of Arthropods will apply to them.

Experience
Nightflies drop experience when killed.

夜翼