Achman741

Big Reactors Control Rod Control

Dec 13th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. --Created by achman741--
  2. --pastebin get yAbXsVVU startup--
  3. local c = peripheral.wrap("back")
  4. x = 0
  5.  
  6. function set()
  7. c.setAllControlRodLevels(x)
  8. end
  9.  
  10. function get()
  11. sleep(0)
  12. x = tonumber(io.read())
  13. end
  14.  
  15. function main()
  16. while true do
  17. sleep(0.05)
  18. get()
  19. set()
  20. end
  21. end
  22.  
  23. main()
  24.  
  25. x = nil
Advertisement
Add Comment
Please, Sign In to add comment