#How to set custom NBT data to items?
1 messages · Page 1 of 1 (latest)
add nbt from "{FrostPick:1b}" to nbt of player's tool
Let's say it's in a scenario where I am giving the item.
give 1 diamond pickaxe with nbt {FrostPick:1b} to player
command /givepickaxe:
trigger:
set {_item} to diamond pickaxe
add nbt from "{FrostPick:1b}" to nbt of {_item}
give {_item} to player
Oh... Does it have to be using a variable?
yeah because you either add it (to something) or set it (for something)
Ah, gotcha.
One more thing.
If I was to check it, is it just
if {_item} has nbt "{FrostPick:1b}"
@cedar sentinel
maybe something like if nbt compound of {_item} has tag "{FrostPick:1b}":
also no need to ping me
Sorry- I saw you went offline.
even if i did go offline it would mean i have something else to do