Advertisement
osirisgothra

turbine and ye/cy/blu reactor readout static v1

Mar 14th, 2022
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. p=peripheral
  2. function turbine(n)
  3.  
  4.   return "BigReactors-Turbine_"..tostring(n)
  5. end
  6. function reactor(n)
  7.     return "BigReactors-Reactor_"..tostring(n)  
  8. end
  9.  
  10. t1=p.wrap(turbine(0))
  11. t2=p.wrap(turbine(1))
  12. r1=p.wrap(reactor(14))
  13. r2=p.wrap(reactor(15))
  14. tm=p.wrap("left")
  15. rm=p.wrap("bottom")
  16. function cls()
  17.   tm.clear(); tm.setCursorPos(1,1)
  18.   rm.clear(); rm.setCursorPos(1,1)
  19. end
  20. cls()
  21. tm.setTextScale(0.5)
  22. tm.write("Turbine Readout")
  23. rm.setTextScale(0.5)
  24. rm.write("Reactor Readout")
  25. doexit=0
  26. function dotur(mon,tb,ypos)
  27.  
  28. end
  29. function dorea(mon,re,xpos)
  30.  
  31. end
  32. while doexit ~= 1 do
  33.  os.startTimer(2)
  34.  e,v=os.pullEvent()
  35.  if (e=="key") then
  36.    if (v==keys.x) then
  37.      doexit=1
  38.    end
  39.  end  
  40.  dotur(tm,t1,1)
  41.  dotur(tm,t2,4)  
  42.  dorea(rm,r1,1)
  43.  dorea(rm,r2,10)
  44. end
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement