Advertisement
Guest User

Recipe Manager

a guest
Apr 13th, 2020
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. -- Author: DaffyDavinko
  2. -- Name: Recipe Manager
  3. -- Desc: Handles all recipes.
  4.  
  5. local RecipeManager = {}
  6.  
  7. Recipes = {
  8.     [ "Grilled Cheese Sandwhich" ] = {
  9.    
  10.     Ingredient1 = "Bread", 
  11.     Ingredient2 = "Butter",
  12.     Ingredient3 = "American Cheese"
  13.     }  
  14.    
  15. }
  16.  
  17. local ItemRecipeName = {"Grilled Cheese Sandwhich"}
  18. function FindRecipe(Recipes)
  19.     for i,v in pairs(Recipes) do
  20.         table.find(Recipes, ItemRecipeName[1])
  21.     end
  22. end
  23.  
  24. return RecipeManager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement