Recipe

Inherits: Resource

Resource that contains the definition of items needed for Crafting at the CraftStation.

Description

This recipe is used by CraftStation to list all possible recipes available, A CraftStation load available recipes in the Node._ready().

Note: CraftStation must have the same CraftStationType as the recipe for it to work. If the recipe does not have station set it will be listed on a CraftStation that also does not have CraftStation.type set.

Properties

Array[ItemStack]

ingredients

[]

Array[ItemStack]

products

[]

Array[ItemStack]

required_items

[]

CraftStationType

station

float

time_to_craft

4.0


Property Descriptions

Array[ItemStack] ingredients = [] 🔗

ItemStack list for items needed for crafting. If CraftStation.only_remove_ingredients_after_craft is true these items are removed from Inventory after crafting, if false will be removed at the beginning of the crafting process, after calling CraftStation.craft().


Array[ItemStack] products = [] 🔗

List of stacked items from the result after crafting is completed. These items must be added in Inventory after crafting is complete.


Array[ItemStack] required_items = [] 🔗

ItemStack of items that are required for crafting. Unlike ingredients items, these items are not removed after the crafting process.


CraftStationType station 🔗

CraftStationType required for this crafting to work.


float time_to_craft = 4.0 🔗

  • void set_time_to_craft(value: float)

  • float get_time_to_craft()

Time (in ticks) to complete the crafting process.