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 = math.floor(mb * 100 / cap)
- modem = "top"
- monitor = 40
- toMon = {cap, name, mb, b, perc}
- rednet.open(modem)
- while true do
- rednet.send(monitor,toMon)
- sleep(300)
- end
Advertisement
Add Comment
Please, Sign In to add comment