Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tank = peripheral.wrap(<side in quotes>) --# wrap the tank as a peripheral
- local tankInfo = tank.getTankInfo("unknown") --# get the tank info
- local tankStats = tankInfo[1] --# store the first table returned
- print tankStats.rawName --# print the raw name of the fluid in the tank
- print tankStats.amount --# print the amount in the tank
- print tankStats.capacity --# print the capacity of the tank
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement