Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripherals.wrap("back")
- t = peripherals.wrap("bottom")
- function drawCol(m,x, y, height, width, color)
- bgColor = m.getBackgroundColor()
- for i = x, (width + x) do
- for j = y, (height - y) do
- m.setCursorPos(i,j)
- m.setBackgroundColor(color)
- m.write(" ")
- end
- end
- m.setBackgroundColor(bgColor)
- end
- while true do
- m.clear()
- tank = t.callRemote("mekanism:dynamic_valve_0", "tanks")
- amount = tank["amount"]
- p = (amount/1728000)*100
- p = math.floor(p)
- drawCol(m, 2, 5, 10, 3, colors.brown)
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement