Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r2 = peripheral.wrap("BigReactors-Turbine_2")
- m = peripheral.wrap("monitor_0")
- m.clear()
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,1)
- m.write("Turbine 1: " .. math.floor(r2.getRotorSpeed() + .5) .. " RPM")
- bar = math.floor(((r2.getRotorSpeed()/1800)*(5))+0.5)
- m.setCursorPos(2,2)
- m.setBackgroundColour(colors.red)
- m.write(string.rep(" ",2))
- m.setCursorPos(2,2)
- m.setBackgroundColour(colors.blue)
- m.write(string.rep(" ",bar))
Add Comment
Please, Sign In to add comment