In my experience playing Minecraft, I have encountered the Allay many times and I can confidently say that it does not despawn like other mobs in the game. This is actually a unique feature of the Allay that sets it apart from other creatures.
When you come across an Allay, it will initially appear as a note-block. This is where the Allay chooses to make its home, much like how a Bee lives inside a Hive. It’s quite fascinating to see this little creature residing within a simple note-block.
Now, here’s the interesting part. If you wish to bring the Allay with you on your mining expedition or any other adventure, you can easily do so by right-clicking on the Allay with a Totem. This action will allow you to “capture” the Allay and bring it back to the Totem. It’s almost like having a portable companion that can accompany you wherever you go.
The ability to return the Allay to the Totem by right-clicking is incredibly convenient. It means you can have multiple Allay with you at any given time, as long as you have enough Totems. This is especially helpful when you’re mining and need some extra assistance or company.
I remember one particular mining expedition where I had a couple of Allay with me. They were incredibly helpful in alerting me to nearby ores and mobs. Their presence made the whole experience much more enjoyable and efficient. Plus, they added a touch of whimsy to the mining process.
So, to answer your question, no, the Allay does not despawn like other mobs in Minecraft. Instead, it lives inside a note-block and can be easily returned to the Totem by right-clicking on it. This feature makes it a valuable and convenient companion to have on your adventures.