Detecting item in Inventory Bug
Hi,
I have the problem that i need to have 2 of the identical swords. it shouldnt do that
Continue to help postexecute as @a[scores={UseSword=1..}] at @s if entity @a[nbt={Inventory:[{components:{"minecraft:custom_data":{my_custom_tag:true}}}]}] run tp @s ^ ^ ^5 ~ ~ execute as @a[scores={UseSword=1..}] at @s if entity @a[nbt={Inventory:[{components:{"minecraft:custom_data":{my_custom_tag:true}}}]}] run give @a minecraft:netherite_sword[minecraft:custom_name='{"bold":true,"color":"dark_purple","text":"Watcher Claymore"}',custom_data={my_custom_tag:true}] 1