#How to give item custom nbt compound to identify it - can't understand error for line 3,4

1 messages · Page 1 of 1 (latest)

frigid geyser
#
    set {wither} to netherite sword named "withered"
    set {witherid} to nbt compound of {wither}
    set tag "tag;custom;type" of {witherid} to "wither"

command /wither:
    permission: op
    trigger:
        give player {wither}```
I'm trying to give a custom sword a custom nbt compound tag so that the sword will work after being enchanted or losing durability. I've used the docs and wiki AND the checked forums and the discord for people that had the same problem but I can't seem to get it right. Can somebody help me out?
tiny imp
#

custom nbt compound

frigid geyser
tiny imp
#

you need to also use string tag

frigid geyser
#

could i perchance get an example?

tiny imp
#

that should work in-game

frigid geyser
#

you're right lmao

#

idk why skunity parser and analyzer in skeditor show errors

#

thanks lol