Advertisement
Tado

Untitled

Jan 31st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local reactor = peripheral.wrap("back")
  2. local mon = peripheral.wrap("monitor_5")
  3. local data = {}
  4.  
  5. rednet.open("top")
  6.  
  7. function afficheDonnee()
  8. mon.clear()
  9. mon.setTextScale(2)
  10. mon.setCursorPos(1,1)
  11. mon.write("Energie produite")
  12. mon.setCursorPos(1,2)
  13. mon.write(nrj)
  14.  
  15. end
  16.  
  17. while true do
  18. nrj = math.floor(reactor.getEnergyProducedLastTick())
  19. afficheDonnee()
  20. os.sleep(1)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement