Guest User

Steam.lua

a guest
Aug 24th, 2025
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. tank=peripheral.wrap("dynamicValve_1")
  2. local A = tank.getFilledPercentage()
  3. local B = peripheral.wrap("right")
  4. while true do
  5.  
  6. B.clear()
  7. B.setCursorPos(1,1)
  8. B.write(A)
  9. if A < 1 then
  10. rs.setAnalogOutput("left", 15)
  11. else
  12. rs.setAnalogOutput("left",0)
  13. end
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment