Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("bg")
- a = peripheral.wrap("tealtar_0")
- m = peripheral.wrap("top")
- function info(tab)
- print("LP: "..tab["amount"])
- m.write("LP: "..tab["amount"])
- m.setCursorPos(1,3)
- print("Capacity: "..tab["capacity"])
- m.write("Capacity: "..tab["capacity"])
- end
- function item(tab2)
- print("Item: "..tab2["name"])
- m.setCursorPos(1,5)
- m.write("Item: "..tab2["name"])
- end
- while true do
- t = a.getTankInfo("up")
- t = t[1]
- r = a.getAllStacks()
- r = r[1]
- info(t)
- if not r == nil then
- item(r)
- end
- sleep(0.2)
- term.clear()
- m.clear()
- term.setCursorPos(1,1)
- m.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement