Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("top")
- t = p.getNamesRemote()
- for i = 1, #t do
- if string.find(string.lower(t[i]), "tank") then
- data = p.callRemote(t[i], "getTankInfo","")
- if (data[1]["rawName"] ~= nil) and (data[1]["amount"] ~= nil) and (data[1]["capacity"] ~= nil) then
- print(data[1]["rawName"]..": "..data[1]["amount"].."/"..data[1]["capacity"])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement