Advertisement
Guest User

startup

a guest
Sep 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. chest = peripheral.wrap("right")
  2. os.loadAPI("sql")
  3.  
  4. --Alloys
  5. invar = false
  6. electrum = false
  7. aluminumBrass = false
  8. alumite = false
  9. bronze = false
  10. manyullyn = false
  11.  
  12.      iron_c = 0
  13.   ferrous_c = 0
  14.      gold_c = 0
  15.    silver_c = 0
  16. aluminium_c = 0
  17.    copper_c = 0
  18.       tin_c = 0
  19.  
  20. while true do
  21.   invar = sql.get("alloy_invar")
  22.   electrum = sql.get("alloy_electrum")
  23.   aluminumBrass = sql.get("alloy_aluminumbrass")
  24.   alumite = sql.get("alloy_alumite")
  25.   bronze = sql.get("alloy_bronze")
  26.   manyullyn = sql.get("alloy_manyullyn")
  27.  
  28.   print("Invar: " .. invar)
  29.   print("Electtrum: ".. electrum)
  30.   print("AluminumBrass: ".. aluminumBrass)
  31.   print("Alumite: ".. alumite)
  32.   print("Bronze: ".. bronze)
  33.   print("Manyullyn: ".. manyullyn)
  34.   sleep(2)
  35.  
  36.   print("condensing items")
  37.   chest.condenseItems()
  38.  
  39.    i = 1
  40.    while (chest.getStackInSlot(i) ~= nil) do
  41.      
  42.      chest_slot = chest.getStackInSlot(i)  
  43.      print(chest_slot.name)  
  44.  
  45.      i = i +1
  46.   end
  47.  
  48.   sleep(5)
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement