kitchen.lua

This file controls the kitchen crafting system via Config.KitchenRecipes.

Each recipe defines:

  • id (also the reward item name)

  • title & description for UI

  • cooking time

  • energy cost

  • required ingredients

Example (in code):

configs/kitchen.lua
-- Example entry in Config.KitchenRecipes
Config.KitchenRecipes = {
  ["apple_pie"] = {
    id = "apple_pie",
    title = "Apple Pie",
    description = "A warm homemade apple pie.",
    time = 60,         -- cooking time in seconds
    energy = 10,       -- energy cost
    ingredients = {
      { item = "apple", amount = 3 },
      { item = "flour", amount = 1 },
      { item = "sugar", amount = 1 }
    }
  }
}