Advertisement
TechManDylan

reactor

Jan 29th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function getReactorHandle()
  2. local pList = peripheral.getNames()
  3. local i, name
  4. for i, name in pairs(pList) do
  5. if peripheral.getType(name) == "BigReactors-Reactor" then
  6. return peripheral.wrap(name)
  7. end
  8. end
  9.  
  10. error("No big reactor connected: Exit program")
  11. exit()
  12. end
  13. reactor = getReactorHandle()
  14. print("Set Control Rod to what level?")
  15. local Crod = tonumber(read())
  16. reactor.setAllControlRodLevels(Crod)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement