I'm really new to1.13 command blocks and was wondering if anyone could help me give a a potion effect if wearing a helmet named "Cappy". This is the code I've got right now, but I'm 99% sure its trash.
execute if entity @a[nbt={Item:{id:"Cappy",Count:1,tag:{display:{Name:"Cappy"}}}}] run effect give @a minecraft:instant_damage 5 10 true
I'm really new to1.13 command blocks and was wondering if anyone could help me give a a potion effect if wearing a helmet named "Cappy". This is the code I've got right now, but I'm 99% sure its trash.
execute if entity @a[nbt={Item:{id:"Cappy",Count:1,tag:{display:{Name:"Cappy"}}}}] run effect give @a minecraft:instant_damage 5 10 true
If you can help I'd really appreciate it.
effect give @a[nbt={Inventory:[{Slot:103b,tag:{display:{Name:"{\"text\":\"Cappy\"}"}}}]}] minecraft:instant_damage 5 10 true
I'm really new to1.13 command blocks and was wondering if anyone could help me give a a potion effect if wearing a helmet named "Cappy". This is the code I've got right now, but I'm 99% sure its trash.
execute if entity @a[nbt={Item:{id:"Cappy",Count:1,tag:{display:{Name:"Cappy"}}}}] run effect give @a minecraft:instant_damage 5 10 true
If you can help I'd really appreciate it.
effect give @a[nbt={Inventory:[{Slot:103b,tag:{display:{Name:"{\"text\":\"Cappy\"}"}}}]}] minecraft:instant_damage 5 10 true
This is probably what you're looking for.
Thank you so much! This works perfectly