Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Peripheral Setup
- reactor = peripheral.wrap("BigReactors-Reactor_1")
- --Functions
- function Initialize()
- numRods = reactor.getNumberOfControlRods()
- --
- --
- --
- --
- end
- function RodSettings()
- term.clear()
- term.setCursorPos(1,1)
- write("Magic Oil Reaction System \nNumber of Control Rods: ")
- write(numRods) --Declare in Function Intialize, control rod #
- --Rod Levels--
- write("\nRod Insertion Levels: ")
- --[[
- LevelLoop = 0
- while LevelLoop <= numRods do
- selRod = 1
- term.write("Rod # ")
- term.write(selRod)
- term.write(\n": ")
- rodlvl = reactor.getControlRodLevel(selRod)
- term.write(rodlvl)
- term.write("%"\n)
- selRod = selRod + 1
- end
- ]]--
- end
- Initialize()
- RodSettings()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement