same
private int[] NEST_ID = {5070,5071,5072,5073,5074,5075};
if(inventory.contains(NEST_ID)){
inventory.getItem(NEST_ID).interact("Search");
//sleep
}
or
Item nest = script.inventory.getItem(new Filter<Item>() {
@Override
public boolean match(Item item) {
return item.getName().equalsIgnoreCase("Bird's Nest")&& item.getActions()[0].equalsIgnoreCase("Search");
}
});
if(nest != null){
nest.interact("Search");
//sleep
}
there's lots of ways of doing this, but ID's should work well for what you want