Allay

( /əˈleɪ/ uh-ʟᴀʏ)
The allay, resembling the Vex, is a passive flying creature (mob) that aids players by collecting and delivering items when offered something or upon 
hearing a note block playing nearby.
== Biology ==
The allay, resembling a vex, is petite in size and adorned in a vibrant shade of blue. Its eyes, devoid of pupils, are a striking white. With wings reminiscent of a vex, it lacks legs like a ghost, but possesses diminutive arms. Despite its lack of illuminating abilities, the allay's luminous texture enables it to be easily discernible in darkness. Notably, there exist two distinct variations of the allay.
* The main allay variant.
* The yellow variant of the allay.
== Lore ==
The allays were established in order to address the issue of how players could construct buildings and gather materials in Minecraft Legends, all the while concentrating on protecting the overworld.
== Spawning ==
Allays have a 50% chance of spawning in dark oak cages near pillager outposts in groups of 1-3.
Allays also have a 50% chance to spawn inside jail cells within woodland mansions in groups of 1-3.
== Behavior ==
The allay possesses a radiant texture that enables it to be easily discernible in the absence of light, despite its inability to illuminate its environment.
The allay is a diminutive and serene creature that drifts without purpose until a player bestows upon it an item using their designated use key. Once bestowed, the allay dutifully trails behind the player, diligently searching for discarded copies of the same item to retrieve and deliver to its master. However, should any player reclaim the item from the allay by simply using their empty hand, the allay will resume its aimless wanderings.
The ally will track the player who most recently gave it an item. It will accompany the player within a 64-block cubic radius and search for items within a 32-block cubic radius. Once it delivers items, there is a three-second delay before it can search for items again. The ally has one inventory slot to store a stack of items (typically 64 items) along with the item received from the player. Although the ally does not recognize enchantments, unique item names, or items in shulker boxes during its search, it will transport such items in separate trips.
If the game rule (/gamerule mobGriefing) is set to false, it is advised not to collect any items from allies. However, players can still provide items to allies by using the designated key.
If an allay detects a note block playing within a 16-block radius while carrying items, it will redirect its items to the note block and spend 30 seconds in the vicinity, collecting and returning items to it instead of the player. After 30 seconds, the allay will resume targeting the player. A vibration particle will signal the allay's focus on the note block. While fixated on a note block, the allay will only respond to sounds from that specific block, resetting the timer until it loses interest. This feature enables multiple allays to operate simultaneously with different note blocks. Placing wool between the note block and the allay can prevent this interaction.
The allay has the ability to collect items in a range of approximately 1.3 blocks and release items up to 3 blocks away from the player or note block.
An allay performs a dance animation when there is a nearby jukebox playing. If the jukebox stops playing or if the allay gets too far away from the jukebox, it stops dancing.
The allay cannot enter water, although it attempts to gather items that are under water.
Allays cannot be harmed by their interacted owners. If they are harmed by another source, they fly away for a few seconds. When killed, allays drop the items they were holding. If an allay dies while holding a totem of undying, it instead returns to full health and the totem is destroyed, as with any mob holding a totem of undying. Allays naturally regenerate 2 hearts per second if damaged.
Using a lead or a named name tag performs the item's normal function, instead of giving it to the allay. An allay may be given a lead by first leashing the allay to a fence post.
=== Allay duplication ===
If an allay is given an amethyst shard while it is dancing due to a nearby jukebox playing any music disc, it splits into two allays (itself and a new allay) and the amethyst shard is consumed. After duplication, both allays have a five minute cooldown before being able to duplicate again. Allays do not have a baby form.
=== Teleportation ===
When a player teleports through a nether portal, the player's allay teleports with them, even if it does not enter the portal.
When a player teleports through an end portal, the allay teleports to the End only if a player gives the allay an item before teleporting and must be nearby the player as they teleport.
Allays holding an item follow the player through a portal if they are 21 blocks horizontally to the player or if they are within 22 blocks vertically of the player's legs. Allays do not travel through portals regardless of how close they are if they are tethered to a fence with a lead.
== Trivia ==
* The allay was originally planned for the Nether Update.
* Some previous names considered for the allay were the wisp and the pixie.
* The allays were created to solve the problem of how players would build structures and collect resources in Minecraft Legends while focusing on defending the overworld.
* The reason why allay duplication uses amethyst shards is because the item is renewable, has a musical sound that fits with the allay, and it adds more value to amethyst geodes.
* According to the "meet the allay" article on Minecraft.net, the reason why allays can be tamed by players is because they form a "magical connection" when that player gives it an item. This bond is what prevents players from accidentally harming their allay.
* Originally, Mojang considered having allays naturally spawn within forest biomes. However, the reason they went with pillager outposts and woodland mansions, was because they wanted to highlight the companionship aspect.
* Despite that they are flying mobs, allays can destroy turtle eggs when on top of them.
* The yellow allay variant was meant to be a reference to the Build Allay in Minecraft Legends.
Category:Minecraft
Category:Mobs
Category:Passive Creatures
Category:Blue Creatures
Category:Small Creatures
Category:Creatures
Category:Flying Creatures
Category:Bioluminescence Creatures
Category:Counterpart Creatures
Category:Regenerating Creatures