Advertisement
Hydroxios

Untitled

Aug 4th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. m = peripherals.wrap("back")
  2. t = peripherals.wrap("bottom")
  3.  
  4. function drawCol(m,x, y, height, width, color)
  5. bgColor = m.getBackgroundColor()
  6. for i = x, (width + x) do
  7. for j = y, (height - y) do
  8. m.setCursorPos(i,j)
  9. m.setBackgroundColor(color)
  10. m.write(" ")
  11. end
  12. end
  13. m.setBackgroundColor(bgColor)
  14. end
  15.  
  16. while true do
  17. m.clear()
  18. tank = t.callRemote("mekanism:dynamic_valve_0", "tanks")
  19. amount = tank["amount"]
  20. p = (amount/1728000)*100
  21. p = math.floor(p)
  22. drawCol(m, 2, 5, 10, 3, colors.brown)
  23. os.sleep(1)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement