Перейти к содержимому
Mineforgian

Animal Hunger

Welcome to AnimalHunger! Bring your Minecraft farming to life with AnimalHunger, a lightweight and immersive plugin that adds hunger mechanics to your animals!

Загрузки
662
Подписчики
8
Обновлён
21 июня 2026 г.
Лицензия
MIT

Опубликован 28 июня 2025 г.

Animal Hunger - WiKi

API FOR ANIMALHUNGER - API

Animal Hunger

Bring your Minecraft farming to life with AnimalHunger, a lightweight and immersive plugin that adds hunger mechanics to your animals! Care for your cows, pigs, sheep, and chickens by feeding them, leveling them up, and managing their survival. Neglect them, and they might starve—but nurture them, and they'll reward you with better drops and growth!

Key Features

Dynamic Hunger System: Animals lose hunger over time and can die if not fed.

Interactive GUI: Shift+Right-click animals to open a sleek menu for feeding, upgrading, or slaughtering.

Leveling & Upgrades: Feed animals to level them up and upgrade their stats for better rewards.

Customizable Drops: Configure unique drops for each animal type with adjustable chances.

Visual Feedback: Enjoy particle effects and sounds for feeding, leveling, and more!

Persistent Data: Animal data is saved across server restarts using a YAML database.

Performance Optimized: Asynchronous saving and efficient tasks ensure minimal lag.

Whether you're a dedicated farmer or a server owner looking to add depth to survival gameplay, AnimalHunger offers a fresh and engaging experience. Fully customize the plugin through its config files to match your server's vibe!

Permissions

  • animalhunger.use – Allows players to use the plugin's core features (e.g., interacting with animals). Default: true
  • animalhunger.reload – Grants permission to reload the plugin config. Default: op
  • animalhunger.bypass – Allows bypassing hunger mechanics for admin testing. Default: op

PlaceholderAPI Support

  • %animalhunger_hunger%: Displays the current hunger of the last interacted animal (e.g., "10")
  • %animalhunger_max_hunger%: Displays the maximum hunger capacity of the last interacted animal (e.g., "12")
  • %animalhunger_level%: Displays the level of the last interacted animal (e.g., "2")
  • %animalhunger_bond%: Displays the bond level (in percentage) of the last interacted animal (e.g., "50")
  • %animalhunger_resources%: Displays the resource count of the last interacted animal (e.g., "0")
  • %animalhunger_animal_type%: Displays the type of the last interacted animal (e.g., "SHEEP")
  • %animalhunger_hunger_percent%: Displays the hunger as a percentage of max hunger (e.g., "83" for 10/12)
  • %animalhunger_level_by_id_<id>%: Displays the level of the animal with the specified ID (e.g., %animalhunger_level_by_id_0% returns "2" for an animal with id: 0 and level 2)

We do for free what others do for a fee! ^_^

Ченджлог

2.4.9Релиз26.1.1, 26.1.2, 26.2 · 21 июня 2026 г.

Patch 2.4.9

Fixed compatibility issue with 1.21.4 (Leaf/Paper) with SPELL_MOB

Fixed button overlapping errors in the menu (config.yml)

Load optimization in Placeholders (Red Zone in the profiler) has been performed.

New mechanics have also been added, balance has been adjusted, and animations have been modified for compatibility with new versions of the game starting from 1.21.11 and later.

The placeholder system—which displays animations when an animal wants to drink or eat—has been completely reworked from scratch.

The configuration options have been refined, and new messages have been added for improved customization.

2.4.8Релиз26.1, 26.1.1, 26.1.2 · 30 мая 2026 г.

Disease System Implementation Now, if an animal falls ill, a prefix will appear above it:

Plaintext [! Sick] Cow [Lvl 3]

The indicator works even if the standard nameplate is hidden by level settings or the show_only_after_rename option.

How the Disease Works Diseases are configured in the config.yml file:

YAML disease_system: enabled: true check_interval: 1200 chance_per_tick: 0.01 damage: 1 sound: ENTITY_ZOMBIE_VILLAGER_CURE cure_item: GOLDEN_APPLE indicator: enabled: true force_visible: true format: "&#F08080[! Sick]"

The logic is as follows:

Every check_interval ticks, the plugin checks active animals.

If an animal is healthy, it has a chance_per_tick probability of getting sick.

If an animal's hunger == 0 or thirst == 0, the chance of contracting a disease is doubled.

If an animal is already sick, it takes damage amount of damage during each disease-check.

Sick animals do not produce resources.

How to Cure Animals The player must use the item specified in the config:

YAML disease_system: cure_item: GOLDEN_APPLE

(By default, this is a GOLDEN_APPLE)

Curing process:

The player holds the Golden Apple in their hand.

Right-clicks (RMB) on the sick animal.

The disease is cured.

The item is consumed (unless the player is in Creative mode).

The display above the animal updates, and the indicator disappears.

The data is saved immediately. Additional Features Added GUI Update: The health status is now visible in the GUI:

Health: Sick / Healthy

Cure Item: golden apple

New Placeholder: Added the {disease} placeholder to entity_display.format:

YAML entity_display: format: "{disease} &#F4A460{name} &#FFD700{level} &#DDA0DD{bond}"

2.4.7Релиз26.1, 26.1.1, 26.1.2 · 5 мая 2026 г.

AnimalHunger Big Update

This update focuses on interface quality, riding improvements, plugin integrations, and better overall stability.

Visual and Interface Improvements

  • Improved the overall interface presentation to make menus and on-screen information cleaner and easier to read.
  • Updated the visual style of several interface elements for a more polished in-game experience.
  • Improved action bar and HUD rendering so important information is displayed more consistently.
  • Fixed visual bugs where some texts could appear broken, incorrect, or hard to read.
  • Fixed black text issues in riding HUD and mini-task progress messages.
  • Improved the display of colored text, formatted bars, and interface messages.

Menu Improvements

  • Added new sections to the second page of the interface.
  • Expanded the second page with more useful menu categories and better organization.
  • Improved navigation between interface sections for a smoother user experience.
  • Improved the structure of menu elements to make important features easier to access.

Riding Improvements

  • Improved animal riding to feel smoother and more stable during movement.
  • Improved riding HUD updates so players get clearer information while riding.
  • Improved the riding experience on supported animals with better feedback and presentation.
  • Improved the visibility of hunger, bond, and ride-related status while mounted.
  • Fixed issues affecting ride-related text display.

Plugin Integrations

  • Improved support for optional plugin integrations.
  • Improved compatibility with ProtocolLib.
  • Improved compatibility with ModelEngine.
  • Improved compatibility with MMOItems.
  • Improved compatibility with MythicMobs and other supported external plugins.
  • Improved the stability of plugin interaction systems when multiple addons are used together.
  • Improved integration handling and fallback behavior for optional dependencies.

ProtocolLib and Compatibility Fixes

  • Fixed a ProtocolLib conflict that could cause problems during animal interaction handling.
  • Fixed an issue where ProtocolLib interaction processing could trigger async world/entity access errors.
  • Improved compatibility handling for ProtocolLib-based interaction fallback.
  • Improved stability when optional plugin integrations are enabled.
  • Improved compatibility reporting and integration tracking for supported addons.

Metrics and Technical Improvements

  • Added bStats support for anonymous plugin usage statistics.
  • Added metrics initialization directly in plugin startup.
  • Added integration-related metrics for optional plugin support and key system states.
  • Added tracking for storage type and enabled gameplay systems in metrics.
  • Added proper shaded packaging for bStats dependencies inside the plugin jar.

General Fixes and Stability

  • Fixed multiple interface-related bugs and text rendering problems.
  • Fixed several display issues in action bar notifications.
  • Improved internal stability for interaction systems.
  • Improved reliability of plugin startup and dependency packaging.
  • Improved overall plugin maintainability and backend structure.
  • General bug fixes and performance/stability improvements.
2.4.6Релиз26.1, 26.1.1, 26.1.2 · 20 апреля 2026 г.
  • The HUD for riding animals has been completely redesigned: it’s now cleaner, larger, and better suited to the plugin’s style.

Fixed an issue with black characters and “broken” bars at the bottom of the screen while riding.

Old config.yml and messages.yml files are now automatically updated with new settings when the plugin is updated.

Updating is now much safer: you no longer need to manually delete old settings.

Backup copies of configuration files are created during updates.

A new mini-quest system for players has been added.

Players now have daily activities related to animals to make gameplay more varied.

Mini-tasks include feeding, favorite food, riding, gathering resources, upgrading animals, breeding, and whistling.

A separate mini-task menu has been added.

You can open mini-tasks via /animalhunger tasks.

A mini-tasks button has been added to the second page of the animal menu.

Players receive instant rewards for completing mini-tasks.

Confirmation for killing an animal has been added to the menu.

Animals can no longer be accidentally deleted with a single misclick.

Improved display of animal names in the HUD while driving.

Updated the plugin’s default messages.

Updated default HUD and GUI settings.

Improved compatibility between old and new config versions.

Added improvements for developers and API extensions.

Updated developer documentation and integration examples.API

2.4.5Бета26.1, 26.1.1, 26.1.2 · 13 апреля 2026 г.

2.4.5

  • Fix MySQL
  • Fix Barrel holog/......
2.4.4Релиз1.21.11, 26.1, 26.1.1 · 4 апреля 2026 г.

Changelog

Fixed a chat formatting bug where mounting an animal could show raw hex color codes instead of the colored animal name. Fixed GUI title color inheritance so changing the animal name color no longer recolors surrounding brackets or the rest of the menu title. Fixed sheep resource collection on newer Minecraft versions so sheep now give wool correctly instead of invalid fallback items. Added proper sheep wool color support, so collected wool now matches the sheep's actual color. Fixed sheep dye interaction so the plugin no longer blocks vanilla dye usage on sheep. Fixed the Feeding Station GUI so menu items stay static and can no longer be taken into the player's inventory after clicking. Reworked the Feeding Station system with a more detailed GUI, better station status display, improved lore text, dynamic information placeholders, and cleaner hologram updates. Improved Feeding Station performance by caching food configuration data and removing unnecessary repeated message file reads during GUI generation. Improved Feeding Station visuals with better particle behavior, cleaner radius previews, and more polished station presentation. Reduced console spam by cleaning up noisy startup/shutdown logs and replacing broken genetics banner text with cleaner messages. Moved less important support/debug information to debug-style behavior so the console stays cleaner in normal use. Improved build configuration to support lighter packaging profiles for database drivers, making it easier to create smaller jar builds without breaking the default setup.

2.4.3Релиз1.21.9, 1.21.10, 1.21.11 · 7 марта 2026 г.

AnimalHunger Changelog Patch 2.4.3

This update improves the overall quality of the plugin and makes the user experience much smoother.

What’s Improved

Cleaned up many player-facing messages to make them easier to read and understand. Improved menu text, GUI labels, and descriptions across the plugin. Standardized color formatting in messages and configuration files for a more consistent look. Reworked parts of the configuration layout to make editing easier for server owners. Improved Genetics system texts, help messages, and quest-related wording. Updated Feeding Station texts and menu descriptions. Improved Animal Home menu text and premium feature notices. Improved Riding, Rename, and Color Selection messages. Fixes

Fixed several broken or awkward text lines. Fixed message inconsistencies between different plugin systems. Fixed multiple resource file formatting issues that could make the configuration harder to manage. Fixed syntax-related problems in YAML resource files. Fixed issues that could cause some menu and animal interaction features to behave incorrectly. Improved handling of internal metadata to reduce errors during gameplay. Technical Stability

Resource files were cleaned and validated. Configuration and message files were checked for syntax problems. General code stability was improved in key interaction systems.

2.4.2Релиз1.21.9, 1.21.10, 1.21.11 · 17 февраля 2026 г.
  • Fix GUI menu
  • Fix Animal Base
  • del config.test.yml

Комментарии

Загружаем…