Jump to content

Get the amount of items in Inventory?


Recommended Posts

Posted (edited)

Hello, I am making a mining script and would like to mine 14 copper, then mine 14 tin ore.

 

 

Something along the lines of:

 

getInventory().contains("Copper ore")[.amount()] < 15

 

How can I check the number of of a particular item in my inventory.

 

 

UPDATE: I've found the method .getAmount() , how can I use this with getInventory?

Edited by Acinate

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...