ProtectAnimals: Protect Animals and Villagers in Minecraft Servers
ProtectAnimals is a lightweight Minecraft plugin that protects animals and villagers from griefers, blocking attacks, leads, feeding, and horse riding in WorldGuard regions.
Download ProtectAnimals
Original name: ProtectAnimals
| File | Version | Loader | Size | |
|---|
| ProtectAnimals.jar | — | — | 7 КБ | Download |
ProtectAnimals: Protect Animals and Villagers in Minecraft
Running a Minecraft server comes with its fair share of headaches, and one of the most persistent is the problem of animal griefing. You spend time carefully building a spawn area, setting up farms, and populating villages, only to find that a player has slaughtered every cow in sight or stolen a prized horse from a protected zone. Standard protection tools like WorldGuard handle blocks and terrain well, but they often leave gaps when it comes to interacting with living creatures. That is exactly where ProtectAnimals steps in. This lightweight server-side plugin works alongside WorldGuard to close those loopholes and give server administrators a reliable way to keep animals and villagers safe from malicious players.
What ProtectAnimals Does
The core idea behind ProtectAnimals is simple: if a player does not have build permission in a WorldGuard region, they should not be able to harm, steal, or interfere with the mobs living there. The plugin automatically checks the player's permissions and the location of both the player and the target mob before allowing any interaction. This means that aggressive actions are blocked instantly, but normal gameplay for trusted players remains completely unaffected.
Comprehensive Mob Protection
ProtectAnimals offers protection for a wide range of neutral mobs, including sheep, cows, pigs, chickens, squids, mooshrooms, and villagers. If a player without build rights tries to attack any of these creatures inside a protected region, the damage is cancelled. The plugin also extends this protection to tamed pets. Cats and wolves that belong to a player are shielded from harm, while wild mobs remain vulnerable. This distinction is important because it preserves the natural survival experience for players exploring outside of protected areas.
Blocking Indirect Harm
Attack damage is not the only way players can cause trouble. ProtectAnimals anticipates several sneaky tactics and blocks them as well. For example, a griefer might try to attach a lead to an animal to drag it out of a protected zone. The plugin prevents this by disabling the use of leads on protected mobs. Feeding animals is also restricted, as uncontrolled breeding can quickly overwhelm a server and cause lag. Even riding is handled carefully. Players cannot mount a horse inside a region without permission, and they cannot dismount there either, which prevents the frustrating situation of a horse being trapped inside an enclosure with no way to retrieve it.
Environmental and Indirect Damage
The protection goes beyond direct player actions. Skeleton arrows and witch potions that hit protected mobs in a region will not cause damage, unless the region is marked as global. Creepers will not explode near animals or villagers, although players in the blast radius still take damage as usual. The plugin also stops players from using dyes to change the color of sheep unless they have the appropriate permissions at both their own location and the sheep's location. Harmful splash potions are blocked, while healing potions are allowed since they do not cause any damage.
Installation and Requirements
ProtectAnimals is a server plugin, not a client-side mod, so it needs to be installed on the server itself. The only hard requirement is WorldGuard, as the plugin relies on its region system to determine where protection applies. The installation process is straightforward. First, you need to download ProtectAnimals: Protect Animals and Villagers in Minecraft for Minecraft from a trusted source, making sure to pick the version that matches your server core. Then, place the .jar file into the plugins folder on your server. Finally, restart the server or use a plugin reload command. Once that is done, the protection is active immediately.
Commands and Permissions
Managing the plugin is easy thanks to a short set of commands. The main prefix is /pa, with /protectanimals as the full alternative. Typing /pa on its own displays a list of available commands. The /pa help command shows which entities are currently protected in WorldGuard regions, while /pa info provides details about the plugin version and author. Administrators can use /pa reload to apply configuration changes without restarting the server. There is also a handy /pa leave command that forces a player to dismount from a horse, which is useful in emergency situations.
The permission system is built around clear nodes. The basic ProtectAnimals.info permission grants access to all informational commands. Administrators will want ProtectAnimals.reload to manage settings and ProtectAnimals.update to receive notifications about new versions. For players who need exceptions, there is a full set of bypass permissions. These include ProtectAnimals.bypass.dye for dyeing sheep anywhere, ProtectAnimals.bypass.feed for feeding animals, ProtectAnimals.bypass.ride for mounting horses, and ProtectAnimals.bypass.exit for dismounting in any region. There are also bypass nodes for shooting, using leads, trading with villagers, shearing sheep, throwing harmful potions, and renaming animals with name tags. This flexibility allows server owners to grant specific players or groups exactly the level of access they need.
Flexible Configuration Options
Starting with version 1.10, ProtectAnimals gives administrators granular control over which mobs are protected. The config.yml file contains an entry for each animal type, and setting a value to false disables protection for that specific mob. For instance, if you want players to be able to hunt cows for leather and meat in certain areas, you can simply set cow: false. This level of customization ensures that the plugin fits the unique needs of your server.
In version 1.16 and later, nearly all plugin messages can be edited. The text uses standard Minecraft color codes, such as &4 for dark red, &a for green, and &l for bold, allowing you to match the notifications to your server's visual style. Since version 1.17, there is also support for per-world configuration. You can list specific world names separated by commas to apply protection only in those dimensions, or use +ALL to enable protection everywhere. This is particularly useful for servers with a dedicated farming world where animals must be safe, while other worlds maintain more relaxed rules.
Why ProtectAnimals Is Worth Installing
ProtectAnimals is a compact but thoughtfully designed plugin that addresses dozens of griefing scenarios that other tools miss. It runs with minimal server overhead, integrates seamlessly with WorldGuard, and offers a high degree of customization through its permission nodes and configuration file. Whether you run a small community server or a large public network, this plugin gives you the tools to protect your animals and villagers without sacrificing the core gameplay experience. To get started, simply download ProtectAnimals: Protect Animals and Villagers in Minecraft and follow the installation steps outlined above. The setup takes only a few minutes, and the peace of mind it provides is well worth the effort. With ProtectAnimals in place, you can stop worrying about stolen horses and slaughtered pets, and focus on what matters most: running a fun and fair server for your community.
Author: KlamrFox