Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printTo(m,txt)
- m.write(txt)
- end
- local mon = peripheral.wrap('right')
- mon.clear()
- local t1 = peripheral.wrap('BigReactors-Turbine_10')
- local t2 = peripheral.wrap('BigReactors-Turbine_9')
- local t3 = peripheral.wrap('BigReactors-Turbine_8')
- local t4 = peripheral.wrap('BigReactors-Turbine_7')
- printTo(mon,"Turbina nr1:"..math.floor(t1.getRotorSpeed()).." RPM")
- mon.setCursorPos(1,1)
- printTo(mon,"Turbina nr2:"..math.floor(t2.getRotorSpeed()).." RPM")
- mon.setCursorPos(2,1)
- printTo(mon,"Turbina nr3:"..math.floor(t3.getRotorSpeed()).." RPM")
- mon.setCursorPos(3,1)
- printTo(mon,"Turbina nr4:"..math.floor(t4.getRotorSpeed()).." RPM")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement