Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest = peripheral.wrap("right")
- os.loadAPI("sql")
- --Alloys
- invar = false
- electrum = false
- aluminumBrass = false
- alumite = false
- bronze = false
- manyullyn = false
- iron_c = 0
- ferrous_c = 0
- gold_c = 0
- silver_c = 0
- aluminium_c = 0
- copper_c = 0
- tin_c = 0
- while true do
- invar = sql.get("alloy_invar")
- electrum = sql.get("alloy_electrum")
- aluminumBrass = sql.get("alloy_aluminumbrass")
- alumite = sql.get("alloy_alumite")
- bronze = sql.get("alloy_bronze")
- manyullyn = sql.get("alloy_manyullyn")
- print("Invar: " .. invar)
- print("Electtrum: ".. electrum)
- print("AluminumBrass: ".. aluminumBrass)
- print("Alumite: ".. alumite)
- print("Bronze: ".. bronze)
- print("Manyullyn: ".. manyullyn)
- sleep(2)
- print("condensing items")
- chest.condenseItems()
- i = 1
- while (chest.getStackInSlot(i) ~= nil) do
- chest_slot = chest.getStackInSlot(i)
- print(chest_slot.name)
- i = i +1
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement