@hexx Assuming you're the same person in the discord who asked the same thing.
https://osbot.org/api/org/osbot/rs07/api/Inventory.html
In the inventory API ^ there's 2 methods
getInventory().isItemSelected();
getInventory().getSelectedItemName();
And the person in the discord needed to make pies and pizzas. You just make a conditions checking an the item is selected, and the name equals the said ingredient, for the other said ingredient you want to combine. Doing more than 2 item combinations can get confusing. Widget may pop up for this I don't remember.
https://osbot.org/api/org/osbot/rs07/api/Widgets.html
Interacting with the Range should bring up some widgets what you wanna cook and etc. Then you interact with that widget whether you press space or clicking. Then for sleeping you could use an animation timer, or wait till you're out of the ingredients || a level up.