Ledger Nano X - The secure hardware wallet
SHARE
TWEET

rod

a guest Apr 3rd, 2020 209 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top