#Check chest chest and any shulkerboxes within chest for item with specific custom_model_data

1 messages · Page 1 of 1 (latest)

thick hare
#

I've managed to check if there's an item in a chest with the custom model data but I want to be able to check any shulker boxes in the chest as well, is this possible with predicates without making it super long by having to write one for every slot?

Why does the "container" work differently for shulkerbox in the chest vs the chest itself?

shrewd tulip
#

you can definitely do this, you would need an any_of to check both in chest or nested in a shulker of said chest.

Just make sure you use the predicte subfunctions in misode or look up the correct syntax.

thick hare
shrewd tulip
#

because you are using the components object not the predicates object

#

only at the deepest level do you want to actually use the "components" check

#

all other levels should be "predicates"

thick hare
#

Ah thank you so much, I just wasn't getting that bit!

#

makes way more sense