Use ```inventory.interact(13,"Use"))``` To select slot 13. followed by ```inventory.interact(14, USE)```.
Here is how I dod mine
private boolean combineComponents() throws InterruptedException {
int[] slotPair = getInvSlotPair();
Item item1 = inventory.getItemInSlot(slotPair[0]);
Item item2 = inventory.getItemInSlot(slotPair[1]);
boolean notNull = item1 != null && item2 != null;
boolean notSameItem = notNull && item1.getId() != item2.getId();
// Assert Item1 and 2 are the equivalent items determined at script start (ItemA and B).
// Not foolproof, but a simple method
boolean sumTo0 = notNull && (item1.getId() + item2.getId() - itemA.getId() - itemB.getId() == 0);
boolean canUseSlotPair = notSameItem && sumTo0;
if (canUseSlotPair && inventory.interact(slotPair[0], USE)) {
ScriptPaint.setStatus("ItemA -> ItemB");
sleep(randomGaussian(300, 100));
return inventory.isItemSelected() && inventory.interact(slotPair[1], USE);
} else {
ScriptPaint.setStatus("ItemA -> ItemB w/ backup interaction");
if (inventory.interact(USE, itemA.getId())) {
sleep(randomGaussian(300, 100));
return inventory.isItemSelected() && inventory.interact(USE, itemB.getId());
}
}
return false;
}