MCS Allays - Enhanced Allays
This datapack significantly expands the capabilities of allays in Minecraft, making them more useful and functional companions for players.
Main Features
Allays receive two important functions that turn them into true assistants:
Area Lighting: If an allay is holding a torch and the player has torches in their last hotbar slot, the allay will automatically light up dark areas around you.
Teleportation to Player: When an allay is more than 24 blocks away from you and you're holding an amethyst shard in your offhand, the allay instantly teleports to you.

Technical Information
Minecraft Version: 1.21 - 1.21.7
Developer: MC Silver
For datapack developers: The system ignores all mobs that use data components (starting from version 1.21.5+). For custom mobs use data, for regular mobs use tags and scores.
Commands
All player commands start with /function .help:mcs_allays/ - this command displays the complete list of available functions and usage instructions.