Hello! I am very new to the osbot API and have limited experience in Java but am not at all new to coding in general. With that being said, I am having a hard time interacting with two items in my inventory. I am testing with buckets of water/clay and would simply like to interact with the two.
My case statement currently looks like this:
case MAKE_CLAY:
log("Made it to case MAKE_CLAY");
sleep(random(250,1200));
if (getInventory().contains("Clay")) {
log("Got the clay");
}
if (getInventory().contains("Bucket of water")) {
log("Got the water");
}
getInventory().interact("Use", "Bucket of water");
sleep(random(110,780));
getInventory().interact("Use", "Clay");
sleep(random(6000,1000));
break;
I feel like I am following the documentation and my logs to check for the clay and water are reaching the debugger so I'm not sure what I'm doing wrong. Any help or advice for a newbie like me is appreciated :)