#Can I edit all items in all inventory slots that have the tag for custom data end_game

1 messages · Page 1 of 1 (latest)

bold hawk
#

I'm trying to make sure that some players can have unbreakable items while other players wearing these items no longer become unbreakable

floral birchBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

🙇 If nobody has answered you by <t:1721844487:t>, feel free to use the Summon Helpers button to ping our helper team.

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

half raptor
#

Your best course of action is probably it use an item modify command for each slot, just don't run it every tick (by the sounds of it you only need to run it very infrequently)

ripe atlas
#

You could use an execute if items * to help limit when the function runs.

bold hawk
#

I already use this command /execute as @a[advancements={adopteuncube:end_game/root=true}] if items entity @s container.* *[!minecraft:unbreakable={},minecraft:custom_data={end_game:"enchanted"}] run (modifie tous les items qui ont ce tag dans l'inventaire du joueur) but in run I would like to modify every items who contains the custom data tag end_game:"enchanted"

ripe atlas
#

I think your best bet is to do what Holmes said.

#

It’s very tedious, but it will work.