Allay

java

The allay is a passive flying mob similar to the vex.

Pillager outposts
Allays can be found surrounding pillager outposts, confined inside dark oak cages.

Woodland mansion
Allays can also spawn inside woodland mansions.

Behavior
Allays fly around aimlessly until with an item. It will appear to hold that item in its hand, and then will scan the area around the player for instances of that same item, where it will then return it to the player.

If a note block is being played, the allay will instead return items to that particular note block for up to 30 seconds.