April 22, 201510 yr I'm trying to unnote essence on the bank chest in cwars and bankChest.interact() with the noted ess selected isn't cutitng it due to the boxes and players getting in the way. Any help? thanks.
April 22, 201510 yr Entity bankChest = objects.closest("Bank chest"); inventory.interact("Use", "Pure essence"); if (inventory.isItemSelected() == true) bankChest.interact("Use"); Is this what you're looking for?
April 22, 201510 yr Entity bankChest = objects.closest("Bank chest"); inventory.interact("Use", "Pure essence"); if (inventory.isItemSelected() == true) bankChest.interact("Use"); Is this what you're looking for? Don't forget to null check the bankChest, also "== true" isn't needed
April 22, 201510 yr Don't forget to null check the bankChest, also "== true" isn't needed I just quickly wrote that so I wasn't thinking about null checking :p. Completely forgot though that just doing like if(dont) that would mean it's looking for dont to be true. Edited April 22, 201510 yr by twin 763
Create an account or sign in to comment