Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = peripheral.wrap("bottom")
- function clear()
- term.clear()
- term.setCursorPos(1, 1)
- end
- clear()
- uuid, state, title, tab = s.get(1)
- -- print(uuid)
- -- print(state)
- -- print(title)
- -- print(textutils.unserialize(tab))
- if tab.timeLeft == 0 then
- print("Caricare il reattore e premere un tasto")
- event = os.pullEvent("key")
- clear()
- end
- print("Pronto")
- while true do
- clear()
- print("Caricamento automatico materiale da arricchire in funzione")
- print("Tempo rimanente: " .. tab.timeLeft)
- rs.setBundledOutput("back", 2)
- uuid, state, title, tab = s.get(1)
- if tab.timeLeft < 10 then
- clear()
- rs.setBundledOutput("back", 32)
- print("Attesa esaurimento uranio")
- sleep(30)
- print("Caricamento uranio")
- rs.setBundledOutput("back", 1)
- sleep(30)
- clear()
- rs.setBundledOutput("back", 0)
- end
- print("sei scemo")
- sleep(1)
- print("sei scemo 2")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement