Acinate Posted March 22, 2015 Share Posted March 22, 2015 (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 March 22, 2015 by Acinate Quote Link to comment Share on other sites More sharing options...
Apaec Posted March 22, 2015 Share Posted March 22, 2015 this.inventory.getAmount("Copper ore") < 15 4 Quote Link to comment Share on other sites More sharing options...