Advertisement
Guest User

rod

a guest
Apr 3rd, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. --Peripheral Setup
  2. reactor = peripheral.wrap("BigReactors-Reactor_1")
  3.  
  4.  
  5.  
  6. --Functions
  7. function Initialize()
  8.   numRods =  reactor.getNumberOfControlRods()
  9. --
  10. --
  11. --
  12. --
  13. end
  14.  
  15. function RodSettings()
  16.     term.clear()
  17.     term.setCursorPos(1,1)
  18.     write("Magic Oil Reaction System \nNumber of Control Rods: ")
  19.     write(numRods) --Declare in Function Intialize, control rod #
  20.    
  21.    
  22.     --Rod Levels--
  23.     write("\nRod Insertion Levels: ")
  24.    
  25.    
  26. --[[
  27.     LevelLoop = 0
  28.     while LevelLoop <= numRods do
  29.         selRod = 1
  30.         term.write("Rod # ")
  31.         term.write(selRod)
  32.         term.write(\n": ")
  33.         rodlvl = reactor.getControlRodLevel(selRod)
  34.         term.write(rodlvl)
  35.         term.write("%"\n)
  36.         selRod = selRod + 1
  37.     end
  38.     ]]--
  39.    
  40. end
  41. Initialize()
  42. RodSettings()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement