#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)
<@&1201956957406109788>
💬 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
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)
You could use an execute if items * to help limit when the function runs.
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"