Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tank=peripheral.wrap("dynamicValve_1")
- local A = tank.getFilledPercentage()
- local B = peripheral.wrap("right")
- while true do
- B.clear()
- B.setCursorPos(1,1)
- B.write(A)
- if A < 1 then
- rs.setAnalogOutput("left", 15)
- else
- rs.setAnalogOutput("left",0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment