- Thread Author
- #1
Code:
for (SpriteItem i : Inventory.getItems("Iron ore")) {
Execution.delay(1000, 1500);
i.interact("Drop");
}
if(Inventory.contains("Iron ore"))
dropOre();
I'm making a simple powerminer (Just trying to learn how to make bots), and I'm attempting to drop items from the inventory when full. The above works but it often misses items in the inventory hence why I attempted recursion, is there a better way to do it? Right now it looks clumsy.