Allay

java

An allay is a passive mob that resembles the vex which is able to fly. Its function is to assist players with the transport of items.

Pillager outposts
Allays can be found surrounding pillager outposts, confined inside dark oak cages. 1 to 3 allays can spawn in each cage.

Woodland mansion
Allays can also spawn inside jail cells within woodland mansions. 1 to 3 allays can spawn in each cell.

Behavior
Allays have a luminous texture, allowing allays to be seen clearly in the dark. They fly around aimlessly until with an item. It will appear to hold that item in its hand and will scan the area around the player for examples of that same item, where it will then return it to the player. A player will get the item back if an allay is interacted again while the player has an empty inventory slot. Allays can pick up items that are up to 15 blocks away from them.

An allay has only 1 slot on its inventory, allowing it to carry 64 stackable items at once. An allay can carry a single non-stackable item, excluding the one that it holds. If a nearby note block is being played, the allay will instead return items to that particular note block for up to 30 seconds with a vibration particle reaching the allay.

When killed, allays drop all the items they were holding.

Allays can pick up similar types of the item given to them. If given a plank of any type, the allay will pick up different types of planks and not just the one assigned to it, for example if given an oak planks the allay will be able to pick up spruce planks, birch planks, jungle planks, etc. Similarly, if a player gives it a certain colored wool, it will also pick up different colored wool.

Trivia

 * Despite not having any connection with the warden and sculk sensors, they have a similar property when they interact with a vibration signal when a note block is being played.
 * Despite their ghostly appearance, allays aren't considered undead mobs, similar to ghasts and vexes.
 * Unlike Vexes, Allays cannot pass through blocks and are also not immune to fire or lava.
 * Even though illagers have captured the allay, they will not attack it.