Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getReactorHandle()
- local pList = peripheral.getNames()
- local i, name
- for i, name in pairs(pList) do
- if peripheral.getType(name) == "BigReactors-Reactor" then
- return peripheral.wrap(name)
- end
- end
- error("No big reactor connected: Exit program")
- exit()
- end
- reactor = getReactorHandle()
- print("Set Control Rod to what level?")
- local Crod = tonumber(read())
- reactor.setAllControlRodLevels(Crod)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement