Eat Weird Food - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
CompEatWeirdFood forks the whole vanilla animal eating classes so the animal can eat whatever you choose.
        //Makes the animal have customizable eating habits
        //A list of defNames the animal can eat. Note that they can not exist, making it possible for you
        //to add items from mods, and if the mod isn't there, the creature will just ignore it
        public List<string> customThingToEat = null;
        //Nutrition gained when eaten (overrides item's nutrition if it has one)
        public int nutrition = 2;
        //If set to true, it will destroy item after one feeding. If not, it will damage it
        public bool fullyDestroyThing = false;
        public float percentageOfDestruction = 0.1f;
        //If no items are present, the animal can dig for them
        public bool digThingIfMapEmpty = false;
        public string thingToDigIfMapEmpty = "";
        public int customAmountToDig = 1;
        //Receive a hediff after eating
        public string hediffWhenEaten = "";
        //Advance life stages (change to a different animal def) after eating
        public bool advanceLifeStage = false;
        public int advanceAfterXFeedings = 1;
        public string defToAdvanceTo = "";
        public bool fissionAfterXFeedings = false;
        public string defToFissionTo = "";
        public int numberOfOffspring = 2;
        public bool fissionOnlyIfTamed = true;
        //Instead of eating a battery, drain its power
        public bool drainBattery = false;
        public float percentageDrain = 0.1f;
        //If food is a plant, receive nutrition according to growth
        public bool areFoodSourcesPlants = false;       
        //This is just for No Water No Life compatibility
        public bool needsWater = true;Important: you need to set the animals <thinkTreeMain> tag to VEF_AnimalWeirdEater, otherwise all this won't work AT ALL.
It is a comp class, so you just add it in XML in the <comps> tag. For example, this allows the Angel Moth in Alpha Animals to eat clothes (including vanilla clothing and Vanilla Apparel Expanded) and if none are found, eat grass and tall grass.
<comps>		
	<li Class="VEF.AnimalBehaviours.CompProperties_EatWeirdFood">
		<customThingToEat>
			<li>Apparel_TribalA</li>
			<li>Apparel_Parka</li>
			<li>Apparel_Pants</li>
			<li>Apparel_BasicShirt</li>
			<li>Apparel_CollarShirt</li>
			<li>Apparel_Duster</li>
			<li>Apparel_Jacket</li>
			<li>Apparel_CowboyHat</li>
			<li>Apparel_BowlerHat</li>
			<li>Apparel_Tuque</li>
			<li>Apparel_WarVeil</li>
			<li>VAE_Footwear_Boots</li>
			<li>VAE_Footwear_Shoes</li>
			<li>VAE_Handwear_Gloves</li>
			<li>VAE_Apparel_CasualTShirt</li>
			<li>VAE_Apparel_Hoodie</li>
			<li>VAE_Apparel_Shorts</li>
			<li>VAE_Apparel_Skirt</li>
			<li>VAE_Apparel_ShirtandTie</li>
			<li>VAE_Apparel_SuitJacket</li>
			<li>VAE_Apparel_Trousers</li>
			<li>VAE_Headgear_Fedora</li>
			<li>VAE_Apparel_Overalls</li>
			<li>VAE_Apparel_FleeceShirt</li>
			<li>VAE_Apparel_Jeans</li>
			<li>VAE_Apparel_ChefsUniform</li>
			<li>VAE_Apparel_MilitaryJacket</li>
			<li>VAE_Apparel_MilitaryUniform</li>
			<li>VAE_Apparel_BuildersJacket</li>
			<li>VAE_Apparel_DoctorScrubs</li>
			<li>VAE_Apparel_LabCoat</li>
			<li>VAE_Apparel_TankTop</li>
			<li>VAE_Apparel_SheriffShirt</li>
			<li>VAE_Apparel_Jumpsuit</li>
			<li>VAE_Apparel_Tunic</li>
			<li>VAE_Apparel_Blouse</li>
			<li>VAE_Apparel_Apron</li>
			<li>VAE_Apparel_Cape</li>
			<li>VAE_Headgear_TrapperHat</li>
			<li>VAE_Headgear_SummerHat</li>
			<li>VAE_Apparel_PeltCoat</li>
			<li>VAE_Apparel_TribalPoncho</li>
			<li>VAE_Apparel_TribalKilt</li>
			<li>VAE_Headgear_Hood</li>
			<li>VAE_Headgear_Scarf</li>
			<li>VAE_Headgear_Beret</li>
			<li>VAE_Headgear_BaseballCap</li>
			<li>VAE_Headgear_ChefsToque</li>					
			<li>Plant_Grass</li>
			<li>Plant_TallGrass</li>
		</customThingToEat>
		<nutrition>1</nutrition>
		<digThingIfMapEmpty>false</digThingIfMapEmpty>
		<fullyDestroyThing>false</fullyDestroyThing>
		<percentageOfDestruction>0.5</percentageOfDestruction>
		<needsWater>true</needsWater>
	</li>
</comps>