AnimalCare [1.20 - 1.21.x] icon

AnimalCare [1.20 - 1.21.x] -----

Minecraft plugin: Adds a hunger system for captive animals: small fenced pens cause animals to get h



AnimalCare v1.1.0

Now you have to care for every animal: keepers who lock mobs in tiny pens will watch them starve—AnimalCare makes you feed and house your livestock properly, rewarding open pastures and stocked trough barrels while punishing neglected cages.


trog.png


=== Feature Overview ===
  • Automatically maps nearby pens and classifies animals as WILD, PASTURE, or CAPTIVE by flood-filling open walkable space (default radius: 15 blocks, adjustable vertical tolerance).
  • Tracks hunger (0–100) for every supported animal via the PersistentDataContainer with configurable loss/regeneration rates, starvation damage at 0, and breeding locks until animals are fully fed.
  • Supports manual feeding, hopper loading, and trough automation that only affects configured entities, keeping villagers and NPCs untouched.
  • Recognises renamed barrels as [Trough], links double-barrel trough pairs, keeps lids open while stocked, and consumes just enough feed based on per-item energy values.
  • Ships with bilingual (EN/DE) default messages, an optional debug sword for live diagnostics, and a GitHub Actions workflow that builds on every push or pull request.

=== Configuration Snapshot ===
Code (Text):

pen:
  detection-radius: 15
  min-pen-size-xz: 12
  max-vertical-delta: 4
hunger:
  captive-loss: 6
  pasture-change: -1
  effects:
    low-threshold: 30
trough:
  name-tag: "[Trough]"
  max-feed-per-cycle: 4
 
=== Usage ===
  • Place or rename a barrel to "[Trough]" (double-barrel setups are linked automatically) and stock it with approved feed (wheat, seeds, carrots, potatoes, beetroot, or any item with configured energy).
  • Right-click the trough to add more food; the automation loop feeds nearby penned animals and updates barrel inventories immediately.
  • Small enclosures count as CAPTIVE and drain hunger faster, large pastures become PASTURE, and animals outside any pen remain WILD at 100 hunger.
  • Enable the optional debug sword in `config.yml` to inspect trough status, detected animals, and next feed cycles in-game.

=== Version Highlights ===
  • v1.1.0 introduces automatic double-barrel trough pairing with live lid animation, reliable hopper/manual feeding triggers, and visible inventory syncing after every cycle.
  • Adds wheat seeds as valid feed, honours configured per-item energy so animals eat precisely what they need, and treats every item with an energy value as trough stock.
  • Hunger processing now filters for explicitly configured entities, and pen detection accepts legacy `GRASS` while defaulting to modern blocks to avoid startup warnings.
  • Existing servers automatically back-fill new configuration keys during upgrades, preserving custom values.

=== Compatibility & Requirements ===
  • Spigot or Paper 1.20+.
  • Requires access to the PersistentDataContainer API.
  • No external databases required.

=== Build & Installation ===
  • Run
    Code (Text):
    mvn -B package
    to build the plugin (GitHub Actions mirrors this on every push/PR).
  • Copy the generated jar from target/ into your server's plugins folder, then restart or use /reload.

=== Support & Feedback ===
  • Report bugs and feature requests via GitHub Issues, including logs, Spigot/Paper version, and configuration excerpts for faster assistance.
Resource Information
Author:
----------
Total Downloads: 17
First Release: Nov 13, 2025
Last Update: Nov 13, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings