SHOW:
|
|
- or go back to the newest paste.
| 1 | tank = peripheral.wrap("right")
| |
| 2 | ||
| 3 | inventory = tank.getTanks() | |
| 4 | name = inventory[1].name | |
| 5 | amount = inventory[1].amount | |
| 6 | capacity = inventory[1].capacity | |
| 7 | ||
| 8 | -- fill = amount / capactiy * 100 | |
| 9 | ||
| 10 | print(name) | |
| 11 | print(amount) | |
| 12 | print(capacity) | |
| 13 | print(fill) |