#how to find if a specific nbt is inside of an array, but comparing it to other storage

1 messages · Page 1 of 1 (latest)

hallow cove
#

what i want to do exactly is test for if an item in my inventory match with an item of a previous stored inventory in a data storage

prisma leafBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

                        🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you


                        
                        ✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
hallow cove
#

i always forget to tag this posts

#

hold on

#

aight done

prisma leafBOT
# prisma leaf <@&1201956957406109788>

<@&935561184806060073> <@&1202694677766348840>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

tranquil nexus
hallow cove
#

so kinda like
if (item in array)

inner locust
#

execute if data storage test:data some_array[{id:”minecraft:stone”}]
You mean like this?

hallow cove
inner locust
#

You could use macros, which would send the id through to a function and you would replace the minecraft:stone with “$(id)”

hallow cove
inner locust
#

Then you would need to iterate through a copy of the array and use the method above that eeyuh mentioned