evolvedrecipe¶
- Soft Override:
Unknown
Defines a dynamic recipe where items can be added in as ingredients in multiple steps. This is notably used to define soups, stews or beverages that can accept multiple combination of ingredients. Stats from each items are added to the final product.
For an item to be accepted in a specific evolvedrecipe, it needs to have the parameter EvolvedRecipe which lists every evolved recipes it can be used in and in what quantity.
For example:
evolvedrecipe Sandwich
{
BaseItem = Base.BreadSlices,
MaxItems = 4,
ResultItem = Base.Sandwich,
Name = Make Sandwich,
CanAddSpicesEmpty = true,
AddIngredientIfCooked = true,
Template = Sandwich,
Cookable = true,
}
item Processedcheese
{
EvolvedRecipe = Sandwich:5;Burger:5;Hotdog:5;Rice:5;Pasta:5;Bread:5;Omelette:5;Toast:5,
...
}
Hierarchy¶
This block can be a child of the following blocks:
ID¶
This block can have an ID.
- Optional:
False
- Can have spaces:
True
Parameters¶
- AddIngredientIfCooked
- Type:
boolean
Whenever ingredients can be added even after the item has been cooked.
- AddIngredientSound
- Type:
block (block: sound)
- Default:
AddItemInBeverage
The sound which will be played when an ingredient is added.
If set to AddItemInBeverage, when the ingredient has the tag base:wetbeverageingredient, the sound will be changed to AddWetItemInBeverage but if not present, it will changed to AddDryItemInBeverage.
- BaseItem
The item which will serve as the base for this recipe, that is the item which will be combined with the ingredients to create the ResultItem.
- CanAddSpicesEmpty
- Type:
boolean
If true, the spices can be added to the BaseItem directly without any ingredients yet added.
- Cookable
- Type:
boolean
- Allowed values:
true
If this parameter is present, the ResultItem will be cookable. Setting it to false will NOT make this value false internally, you need to remove the parameter entirely to make it false.
- MaxItems
- Type:
integer
- Minimum:
1
The maximum number of ingredients which will be used in this recipe. Unique spices on the other hand can be added infinitely.
- MinimumWater
- Type:
float
- Default:
0.0
The minimum amount of water which must be present in the BaseItem for this recipe to be valid.
- Name
- Type:
string
The translation key for the name of this recipe which will be retrieved from the Recipes.json file.
- ResultItem
No description provided.
- Template
- Type:
string
Whenever an item uses this recipe via the EvolvedRecipe parameter, and links to the recipe of the Template, that ingredient will be added to both every evolved recipe with this template value. This allows you to make variants of the same evolved recipe with different containers, for example for beverages, where the same recipe can be used for a cup, a bottle or a jar.