NBT - Item from NBT (Expression) — SkBee
Addon: SkBee · Category: Expression · Since: 1.4.10
Syntax
item[s] (from|of) nbt[s] %nbtcompounds%Description
This expression allows you to grab an item from NBT compounds. This can be useful when wanting to grab items from file nbt, or nbt of an entity or an inventory holding block (like a chest or furnace). It can also be useful for creating your own serializing system. NOTE: Items previously serialized in MC versions 1.20.4 and below, will properly upgrade for MC 1.20.5.
Examples
set {_nbt::*} to compound list tag "Inventory" of file nbt of "world/playerdata/some-players-uuid.dat"
loop {_nbt::*}
set {_i} to item from nbt loop-value