🥕 Pet Food
About
Like players, pets can have a food level aka saturation. The max. saturation value depends on the Max Saturation Attribute.
Pet's saturation value decreased depends on their state (idle, walk, combat).
Saturation value can be restored with pet food.
Pets will not regenerate their health if their saturation level is low enough.
Pets can auto consume food from their inventories.
Food & Categories
The food available for a pet is defined by food categories.
Food configuration located in the config.yml
-> Food
section.
You can create custom food categories and edit or remove existing ones, as well as adding and removing items from them.
You can add items with custom model data, display name, lore, enchants, etc.
Every category has unique identifier. You can use it to set the food categories available for specific Pets.
Every item in category also has a unique identifier. You can use it to give food items to players via Commands.
Setup Tips
Set Pet Food
To set a food categories for a specific pet, go to Pet Template configuration(s) and add food category names to the Saturation
-> Food_Categories
option:
Disable Saturation
To disable the whole saturation system for a specific pet, go to Pet Template configuration(s) and remove the max_saturation
Attribute from the Attributes
-> Default
section.
Auto Consume Food
By default, pets have to be feed by their owners to restore saturation level.
However, you can enable the Auto Consume feature to allow pets auto consume food from their inventory.
Go to the config.yml
and set AutoFoodUsage
-> Enabled
on true
.
Set AutoFoodUsage
-> At_Saturation
value to a desired value (it's recommended to keep it the same or greater than the Saturation_Percent_To_Regen
value).
After that, pets will auto consume suitable food from their inventory when their saturation level drops below that value.
Health Regeneration
Pet health regenration depends on the saturation value in % of max. saturation level.
By default pet must be satiated for 70% or more for natural health regeneration.
You can change this value in the config.yml
-> Saturation_Percent_To_Regen
option.
Saturation Decreasing
To edit saturation decrease modifier for a specific pet, go to Pet Template configuration(s) and edit values under the Saturation
-> Exhaust
section:
This is plain amount of saturation to consume during certain pet states on every tick (1 second).
COMBAT: Amount of saturation to consume when pet inflicts or receives damage.
IDLE: Amount of saturation to consume when pet is staying.
WALK: Amount of saturation to consume when pet is walking.
Last updated