Advertisement
Singleton06

CraftFlower

May 22nd, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.47 KB | None | 0 0
  1. local args = { ... }
  2. os.loadAPI("cInv")
  3. os.loadAPI("Recipes")
  4.  
  5. if table.getn(args) < 2 then
  6.   print("Usage - CraftFlower <flower> <count>")
  7.   print("Available Flowers:")
  8.   print("enodflame")
  9.   print("pureDaisy")
  10.   print("daybloom")
  11.   print("thermalily")
  12.   print("hopperhock")
  13.   print("jaded") -- crafts jadedAmaranthus, no one wants to spell that out though
  14.   print("loonium")
  15.   print("hydroangeas")
  16.   print("solegnolia")
  17.   print("bellethorne")
  18.   print("fallenKanade")
  19.   print("heiseiDream")
  20. end
  21.  
  22. name = args[1]
  23. num = args[2]
  24.  
  25. if name == "hopperhock" then
  26.   cInv.craftFlowers(Recipes.hopperhock, num)
  27. elseif name == "endoflame" then
  28.   cInv.craftFlowers(Recipes.endoflame, num)
  29. elseif name == "thermalily" then
  30.   cInv.craftFlowers(Recipes.thermalily, num)
  31. elseif name == "jaded" then
  32.   cInv.craftFlowers(Recipes.jadedAmaranthus, num)
  33. elseif name == "daybloom" then
  34.   cInv.craftFlowers(Recipes.daybloom, num)
  35. elseif name == "pureDaisy" then
  36.   cInv.craftFlowers(Recipes.pureDaisy, num)
  37. elseif name == "loonium" then
  38.   cInv.craftFlowers(Recipes.loonium, num)
  39. elseif name == "hydroangeas" then
  40.   cInv.craftFlowers(Recipes.hydroangeas, num)
  41. elseif name == "solegnolia" then
  42.   cInv.craftFlowers(Recipes.solegnolia, num)
  43. elseif name == "bellethorne" then
  44.   cInv.craftFlowers(Recipes.bellethorne, num)
  45. elseif name == "heiseiDream" then
  46.   cInv.craftFlowers(Recipes.heiseiDream, num)
  47. elseif name == "fallenKanade" then
  48.   cInv.craftFlowers(Recipes.fallenKanade, num)
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement