Animal Resources On Caravan - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
CompAnimalProductOnCaravan allows the animal to produce resources while being on a caravan, independently of what they produce on the map, and without need for pawn work (shearing, milking, etc).
//Makes the animal produce things while caravaning. These resources will be added
//to caravan inventory, and CAN OVERLOAD IT, making it unable to move
public int gatheringIntervalTicks = 30000;
public int resourceAmount = 1;
public ThingDef resourceDef = null;
public bool femaleOnly = false;
It is a comp class, so you just add it in XML in the tag. For example, this allows the Boomhorse in Vanilla Genetics Expanded to make chemfuel during caravaning
<comps>
<li Class="AnimalBehaviours.CompProperties_AnimalProductOnCaravan">
<gatheringIntervalTicks>2500</gatheringIntervalTicks>
<resourceAmount>1</resourceAmount>
<resourceDef>Chemfuel</resourceDef>
</li>
</comps>