Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function printTo(m,txt)
  2. m.write(txt)
  3. end
  4.  
  5. local mon = peripheral.wrap('right')
  6. mon.clear()
  7. local t1 = peripheral.wrap('BigReactors-Turbine_10')
  8. local t2 = peripheral.wrap('BigReactors-Turbine_9')
  9. local t3 = peripheral.wrap('BigReactors-Turbine_8')
  10. local t4 = peripheral.wrap('BigReactors-Turbine_7')
  11. printTo(mon,"Turbina nr1:"..math.floor(t1.getRotorSpeed()).." RPM")
  12. mon.setCursorPos(1,1)
  13. printTo(mon,"Turbina nr2:"..math.floor(t2.getRotorSpeed()).." RPM")
  14. mon.setCursorPos(1,4)
  15. printTo(mon,"Turbina nr3:"..math.floor(t3.getRotorSpeed()).." RPM")
  16. mon.setCursorPos(1,6)
  17. printTo(mon,"Turbina nr4:"..math.floor(t4.getRotorSpeed()).." RPM")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement