not sure whats working and not with yours but..
if (getInventory().contains("Clay) && getInventory().contains("Bucket of water)) {
if (getInventory().interact("Use, "Bucket of water")) {
if (getInventory().interact("Use", "Clay")) {
conditional sleep here
}
}
conditional sleeps: https://osbot.org/forum/topic/127193-conditional-sleep-with-lambda-expressions/