Docs:
custom nbt of %item% = Returns the 'minecraft:custom_data' component of an item's NBT. Modifying this will modify the original item. (This is an MC 1.20.5+ feature).
Please see Data Component Format on McWiki for more information on item NBT components.```
minecraft command:
/item replace entity @p hotbar.8 with stick[custom_data={test1:1,test2:2}] 1```
Skript:
command /test:
trigger:
set {_item} to player's inventory's slot 8
set {_nbt::*} to custom nbt of {_item}
broadcast {_nbt::*}```
I'm trying to get all the custom data values as a list in {_nbt::*}
The best solution I can think of is