Allay

The allay is a passive flying mob that resembles the vex. 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 them to be seen clearly in the dark. They fly around aimlessly until given an item. It appears to hold that item in its hand and scans the area around the player for examples of that same item, where it then returns the item to the player. A player gets the item back if an allay is interacted again while the player has an empty inventory slot.

An allay has only one slot on its inventory, allowing it to carry 64 stackable items at once or 16 in case of being eggs, ender pearls or snowballs. 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 instead returns items to that particular note block for up to 30 seconds with a vibration particle reaching the allay. It searches for items around the note block.

When an item is given to the allay, they search up to 32 blocks around the player. They can follow a player from 64 blocks away, even if they can't see them. Allays have an item pickup delay of 3 seconds, which means they can't pick up items immediately after they throw them.

Allays cannot be harmed by their owners. If they are harmed, they go into a panic state and start moving wildly in random directions. When killed, allays drop the items they were holding. When holding a totem of undying, the allay can take advantage of it and avoid being killed, similar to a player.

Allays naturally regenerate per second if damaged.

Sounds




ID




Entity data
Allays have entity data associated with them that contain various properties.




 * See Bedrock Edition level format/Entity format.
 * See Bedrock Edition level format/Entity format.

Trivia

 * The word "allay" means "to relieve or alleviate", contrasting the word "vex", which means "to anger or worry".
 * The allay was originally planned for the Nether Update.
 * Some previous names considered for the allay were the wisp and the pixie.