Advertisement
lego11

R. Arricchimento

Aug 13th, 2020 (edited)
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. s = peripheral.wrap("bottom")
  2.  
  3. function clear()
  4. term.clear()
  5. term.setCursorPos(1, 1)
  6. end
  7. clear()
  8.  
  9. uuid, state, title, tab = s.get(1)
  10. -- print(uuid)
  11. -- print(state)
  12. -- print(title)
  13. -- print(textutils.unserialize(tab))
  14.  
  15. if tab.timeLeft == 0 then
  16. print("Caricare il reattore e premere un tasto")
  17. event = os.pullEvent("key")
  18. clear()
  19. end
  20.  
  21. print("Pronto")
  22.  
  23. while true do
  24. clear()
  25. print("Caricamento automatico materiale da arricchire in funzione")
  26. print("Tempo rimanente: " .. tab.timeLeft)
  27. rs.setBundledOutput("back", 2)
  28.  
  29. uuid, state, title, tab = s.get(1)
  30.  
  31. if tab.timeLeft < 10 then
  32. clear()
  33. rs.setBundledOutput("back", 32)
  34. print("Attesa esaurimento uranio")
  35. sleep(30)
  36. print("Caricamento uranio")
  37. rs.setBundledOutput("back", 1)
  38. sleep(30)
  39. clear()
  40. rs.setBundledOutput("back", 0)
  41. end
  42. print("sei scemo")
  43. sleep(1)
  44. print("sei scemo 2")
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement