Auto Nutrition - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
CompAutoNutrition is a comp class that makes an animal eat automatically without consuming anything visible to the player (ants, air, etc)
//A comp class that makes the animal stop when it's hungry and eat a source of food that the player doesn't see
//Example: ants, or air
public int tickInterval = 250;
public string consumingFoodReportString = "Eating food";
It is a comp class, so you just add it in XML in the <comps>
tag. For example, this would allow an animal to eat ants, and check for hunger only every 2000 ticks
<comps>
<li Class="AnimalBehaviours.CompProperties_AutoNutrition">
<tickInterval>2000</tickInterval>
<consumingFoodReportString>Eating ants</consumingFoodReportString>
</li>
</comps>