Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tankSide = "back" --Change it to the side where your tank is connected to
- t = peripheral.wrap(tankSide)
- data = t.getTankInfo(tankSide)
- for i, liquid in pairs(data) do
- print(liquid["rawName"]) --The name of the liquid, as it is called in game
- print(liquid["amount"]) --The current amount of the liquid in the tank
- print(liquid["capacity"]) --The total capacity of the liquid in the tank
- print(liquid["name"]) --The name of the liquid, as it is called in the source code
- print(liquid["id"]) --The ID of the liquid
- end
Add Comment
Please, Sign In to add comment