Cooking Ingredient Value Getters - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

The Cooking module of the framework has one custom ingredient value getter, used mostly for condiments in VE Cooking:

  • IngredientValueGetter_NutritionWithExtraIngredient: allows you to make a recipe that calculates nutrition of the ingredients, plus a single unit of another item. That item's merge compatibility tags need to contain the word "Condiments"

How do I use this code?

To the recipe, you add:

 <ingredientValueGetterClass>VEF.Cooking.IngredientValueGetter_NutritionWithExtraIngredient</ingredientValueGetterClass>

The ingredient where you want to ignore nutrition, and just count units needs:

<ingredient>
	<mergeCompatibilityTags>
		<li>Condiments</li>
	</mergeCompatibilityTags>
</ingredient>
⚠️ **GitHub.com Fallback** ⚠️