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?
#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)
custom nbt compound
yea this is old code but that doesnt work either
you need to also use string tag
like this?
could i perchance get an example?
that should work in-game