Jump to content

Get the amount of items in Inventory?


Acinate

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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