Hydroxios

Untitled

Aug 4th, 2021
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data