Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=peripheral
- function turbine(n)
- return "BigReactors-Turbine_"..tostring(n)
- end
- function reactor(n)
- return "BigReactors-Reactor_"..tostring(n)
- end
- t1=p.wrap(turbine(0))
- t2=p.wrap(turbine(1))
- r1=p.wrap(reactor(14))
- r2=p.wrap(reactor(15))
- tm=p.wrap("left")
- rm=p.wrap("bottom")
- function cls()
- tm.clear(); tm.setCursorPos(1,1)
- rm.clear(); rm.setCursorPos(1,1)
- end
- cls()
- tm.setTextScale(0.5)
- tm.write("Turbine Readout")
- rm.setTextScale(0.5)
- rm.write("Reactor Readout")
- doexit=0
- function dotur(mon,tb,ypos)
- end
- function dorea(mon,re,xpos)
- end
- while doexit ~= 1 do
- os.startTimer(2)
- e,v=os.pullEvent()
- if (e=="key") then
- if (v==keys.x) then
- doexit=1
- end
- end
- dotur(tm,t1,1)
- dotur(tm,t2,4)
- dorea(rm,r1,1)
- dorea(rm,r2,10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement