Recipe - Aidan647/ezlib GitHub Wiki
-
Add
-
Ingredient
-
ezlib.recipe.add.ingredient(recipe_name, ingredient, amount, type)
- Adds ingredient to recipe (if have difficulty adds to both)
- Type is optional "item" can be changed to "fluid" by 1 or "fluid"
-
Result
-
ezlib.recipe.add.result(recipe_name, ingredient, amount, type)
- Adds ingredient to recipe (if have difficulty adds to both)
- Type is optional "item" can be changed to "fluid" by 1 or "fluid"
- Danger can damage localization
-
Remove
-
Ingredient
-
ezlib.recipe.remove.ingredient(recipe_name, ingredient)
- Removes ingredient from recipe (if have difficulty removes from both)
-
Result
-
ezlib.recipe.remove.result(recipe_name, ingredient)
- Removes ingredient from recipe (if have difficulty removes from both)
- Danger works only if recipe have results or you add new result
-
Replace
-
Ingredient
-
ezlib.recipe.replace.ingredient(recipe_name, ingredient_old, ingredient_new, amount, type)
- Replacing ingredient ingredient_old to ingredient_new (if have difficulty adds to both)
- Type is optional "item" can be changed to "fluid" by 1 or "fluid"
-
Result
-
ezlib.recipe.replace.result(recipe_name, ingredient_old, ingredient_new, amount, type)
- Replacing ingredient ingredient_old to ingredient_new (if have difficulty adds to both)
- Type is optional "item" can be changed to "fluid" by 1 or "fluid"
- Danger can damage localization
-
Find
-
Ingredient
-
ezlib.recipe.find.ingredient(ingredient)
- Returns recipe name(s) as table or string which contains ingredient
-
Result
-
ezlib.recipe.find.result(ingredient)
- Returns recipe name(s) as table or string which contains ingredient
-
Get
-
List
- ezlib.recipe.get.list(value)
- More is here
- Returns all recipe list or string
- Value can be table only in recipe format uses as filter
-
Ingredient
- ezlib.recipe.get.ingredient(recipe_name) or
- ezlib.recipe.get.ingredient({recipe_name = "name", type = "type", difficulty = "difficulty", ingredient = "ingredient"})
- Returns ingredient list or true/false
- Type is optional filter can be 1, 2, "item" or "fluid"
- Difficulty is optional can be 0, 1, "normal" or "expensive" (default is normal)
- Ingredient is optional can be any item/fluid name (if used returns true/false)
-
Result
- ezlib.recipe.get.result(recipe_name) or
- ezlib.recipe.get.result({recipe_name = "name", type = "type", difficulty = "difficulty", ingredient = "ingredient"})
- Returns result list or true/false
- Type is optional filter can be 1, 2, "item" or "fluid"
- Difficulty is optional can be 0, 1, "normal" or "expensive" (default is normal)
- Ingredient is optional can be any item/fluid name (if used returns true/false)