Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tank = peripheral.wrap("back")
- info = tank.getTankInfo()
- cap = info[1]["capacity"]
- name = info[1]["contents"]["name"]
- mb = info[1]["contents"]["amount"]
- b = mb / 1000
- perc = mb * 100 / cap .. "%"
Advertisement
Add Comment
Please, Sign In to add comment