Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- os.loadAPI("ocs/apis/sensor")
- ms = sensor.wrap("right")
- mon.clear()
- mon.setTextScale(2.5)
- mon.setCursorPos(1,2)
- mon.write("Reaktory Generuja:")
- while true do
- kabelS = ms.getTargets()
- kabel = ms.getTargetDetails("-1,-2,4")
- karta = ms.getSensorName()
- inputMass = tostring(kabel.EnergyIn)
- mon.setCursorPos(1,3)
- mon.write(inputMass.." EU/t ")
- sleep(3)
- if tonumber(inputMass) >= 10000 then
- mon.setCursorPos(1,4)
- mon.write("Zajebiscie :D")
- else
- mon.setCursorPos(1,3)
- mon.write(" ")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement