THIS IS FOR 1.19 - 1.20.1 - Allay duplicate was fixed in 1.20.2 by mojang
The Allay Restriction Plugin is a Spigot plugin designed to prevent unintended interactions and behavior with Allay mobs, specifically addressing the Allay duplication bug. This bug allows Allays to pick up items from containers, like Shulker Boxes, and duplicate them, which can lead to unwanted exploits in multiplayer servers. This plugin provides an easy way to restrict Allay's behavior by blocking its ability to pick up items, interact with containers, and engage with blocks, thus preventing the item duplication exploit.
Main Features:
- Fixes Allay Duplication Bug: The plugin primarily addresses the duplication bug that occurs when an Allay picks up items from containers, such as Shulker Boxes, and continues to duplicate them. By restricting Allay’s ability to pick up items from containers, this bug is effectively eliminated.
- Prevents Allays from Picking Up Items: Allays are prevented from picking up any items, including Shulker Boxes, which eliminates the risk of accidental or intentional duplication of resources.
- Stops Allay Interaction with Containers: The plugin blocks Allays from interacting with containers (e.g., Chests, Ender Chests, and Shulker Boxes), which ensures they cannot collect or interact with items inside.
- Disables Block Interactions: Prevents Allays from interacting with blocks in the world, ensuring they do not cause unintended changes to the environment.
- Global Restrictions: The restrictions apply globally to all Allays on the server, and no specific world or region setup is required.
How It Fixes the Duplication Bug:
- The Allay duplication bug arises when an Allay picks up items from containers (like Shulker Boxes) and duplicates them in a way that disrupts gameplay balance. This is especially problematic on survival servers or competitive maps.
- By disabling the ability of Allays to pick up items from containers, the plugin ensures that Allays cannot trigger the duplication exploit. Once the Allay cannot pick up items from containers, the duplication bug is effectively resolved.
- Container interactions with Allays are fully restricted, and players no longer have to worry about Allays unknowingly duplicating valuable resources by picking up Shulker Boxes.
Configurable Options:
The plugin is fully customizable via the config.yml file, allowing administrators to toggle specific features. Here’s what you can configure:
- enableAllayRestrictions: Turn the plugin on or off.
- disableItemPickup: Block Allays from picking up items (including Shulker Boxes).
- disableContainerInteraction: Block Allays from interacting with containers like chests, shulker boxes, and ender chests.
- disableBlockInteraction: Prevent Allays from interacting with blocks in the world.
Installation:
- Download the .jar file.
- Place the .jar file in your server's /plugins/ directory.
- Restart or reload your server.
Permissions:
This plugin applies its functionality globally without the need for any specific permissions. There are no additional permissions to manage, and Allay restrictions will apply automatically.
Use Case:
This plugin is essential for server administrators who want to ensure fair gameplay and prevent exploits. By restricting Allay behavior, especially the duplication bug, you can maintain balance and prevent the unintended accumulation of valuable resources. Perfect for survival servers, RPGs, adventure maps, and any server where resource management and fairness are important.