Sayomie550

Reactor Control 1.lua

Apr 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. --[[
  2. Reactor Controller V1.0
  3. --]]
  4. --[[
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print("Initialising Reactor Controller")
  8. print("")
  9. sleep(1)
  10.  
  11. reactor1 = peripheral.wrap("BigReactors-Reactor_1")
  12. storage1 = peripheral.wrap("capacitor_bank_0")
  13.  
  14. if reactor1() = true then
  15.     print("success")
  16. else
  17.     print("fail")
  18. end
  19.  
  20. local reactorPower1 = 0
  21. local reactorGeneration1 = 0
  22. local storagePower1 = 0
  23. local totalStorage = 0
  24. --]]
  25. local periList = peripheral.getNames()
  26.  
  27. for i = 1, #periList do
  28.     print("I have a "..peripheral.getType(periList[i]).." attached as \""..periList[i].."\".")
  29. end
  30.  
  31.  
  32.  
  33.  
  34.  
  35. --while true do
  36.  
  37. --end
Advertisement
Add Comment
Please, Sign In to add comment