Allay

The 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 them to be seen clearly in the dark. They fly around aimlessly until given 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.

An allay has only one slot on its inventory, allowing it to carry 64 stackable items at once or 16 in case of being 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 will instead return items to that particular note block for up to 30 seconds with a vibration particle reaching the allay. It will search 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 will be able to 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.
 * 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.
 * Functionally, the allay is similar in behavior to logistic and construction robots from.