Guest User

steam.lua

a guest
Aug 25th, 2025
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. tank=peripheral.wrap("back")
  2. while tank.getFilledPercentage() < .9 do
  3. local B = peripheral.wrap("monitor_0")
  4.  
  5. B.setTextScale(1)
  6. while true do
  7. local A = tank.getFilledPercentage()
  8. local C = math.floor(A * 100)
  9.  
  10. B.clear()
  11. B.setCursorPos(1,3)
  12. B.write(C.."% Percent Full")
  13. if A < .8 then
  14.  
  15. B.clear()
  16. B.setCursorPos(1,3)
  17. B.write(C.."% Percent Full")
  18. rs.setAnalogOutput("right", 15 )
  19. sleep(.5)
  20. else
  21.  
  22. B.clear()
  23. B.setCursorPos(1,3)
  24. B.write(C.."% Percent Full")
  25. rs.setAnalogOutput("right", 0)
  26. sleep(.5)
  27. end
  28. end
  29. end
  30.  
Advertisement
Add Comment
Please, Sign In to add comment