Food

When Feeding Is Available

A ZAWA animal is hungry if their current hunger is 0.3F less than their max hunger. When this occurs, you will be able to feed the animal. If the animal is full see the Full Animal section.

Full Animal

When an animal is full (their current hunger is greator than 0.3 less than their max hunger) the animal's health will be restored by the heal amount of the food. If the food is inedible by the player (doesn't extend ItemFood) the animal will gain 1 to their health.

Feeding Effects

After you feed an animal the mod will check two things. If the item the animal was fed was a food (that a player can eat) then the nutrition and saturation of that food will be applied to the ZAWA animal. If the item was NOT a food (that a player can eat) then the nutrition value will be defaulted to 1 and the saturation value will be 0.2F

Saturation

All animals maximum saturation is 8.

Hunger depreciation

Assuming deathFromStats is enabled in the config. Every tick the animals saturation will degrade by 0.0025F. When the animals saturation is at 0, their hunger will start to degrade at 0.0003D (or whatever value is set in the config).

Feeders

If an animal's hunger is 1 less than their maximum hunger the animal will begin to search for a feeder. The animal will search 6 blocks from all directions of itself. Assuming the animal can find a full feeder containing food to its liking it will eat until its hunger is greator than 1 less than their maximum hunger. Animals will not remember where their feeders are, so if the animal eats from it once and walks 7 blocks away, the animal will not be able to find the feeder until it wanders back in range.

Taking Damage

If an animals hunger drops below 3 they will start to give off a hunger particle. Once their hunger drops to 0 they will starve relatively quickly.

Enrichment

When Enrichment Is Available

A ZAWA animal is enrichable if their current enrichment is 0.3F less than their max enrichment and the enrichment object allows that animal. When this occurs, you will be able to enrich the animal. If the animal is full on enrichment nothing will happen.

Enrichment Effects

After enriching an animal, the enrichment amount (displayed below the object) will be gained, then the saturation will be applied (this is not displayed anywhere).

Saturation

All animals maximum enrichment saturation is 8.

Enrichment depreciation

Assuming deathFromStats is enabled in the config. Every tick the animals saturation will degrade by 0.0045F. When the animals saturation is at 0, their enrichment will start to degrade at 0.0009D (or whatever value is set in the config).

Enrichment Blocks

Enrichment blocks are found the same as feeders except triggered when the animals enrichment is 0.3F less than its max.

Taking Damage

If an animals enrichment drops below 3 they will start to give off a low enrichment particle. Once their enrichment drops to 0 they will die of depression relatively quickly.