Advertisement
Nanne118

tankTest v2

Feb 12th, 2021
881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement