I'm trying to take the NBT data from a shulkerbox ItemStack and turn it's contents into a list of ItemStacks. I couldn't find any examples of anyone doing this so I tried doing it myself. So far I have an NBTBase list with things such as:
{Slot:0b,id:"minecraft:diamond_sword",Count:1b,tag:{ench:[{lvl:3s,id:16s}]},Damage:0s}
I can think of a couple of ways to convert this. But nothing simple. Any ideas?