Reciepe

Reciepes are Object which get created to add them to your crafting options. To create a new Item in your mod you have to create a new Reciepe Object. For a simple project it's recommended to do this in the modmain.lua file.

There are different constructors for creating a Reciepe Object.

Items:

Recipe(reciepename,ingredients,category ,techlvl)

Example:

Recipe("mylight", {Ingredient("cutgrass", 5),Ingredient("twigs", 1)}, RECIPETABS.LIGHT, TECH.NONE)

Buildings:

Recipe(reciepename,ingredients,category ,techlevel, placer)

Recipe("mycampfire", {Ingredient("cutgrass", 1),Ingredient("log", 1)}, RECIPETABS.LIGHT, TECH.NONE, "campfire_placer")