[SOLUTION] /item replace from nbt?
Hi people, I'm updating a old datapack of mine that is all about items.
With the massive changes of 1.20.5, I'm finding myself needing to rewrite some things and I'm willing to embrace the new technical features.
How can I set, in a specific slot of the player inventory, an item saved as nbt somewhere else? (eg. in a storage).
I was used to put the item in a barrel, and then copying it with /item replace entity @s container.- from block <x,y,z> container.- etc. but this seems a old way and I'd like to replace it with something better and modern.
Tried with macros but I get the problem of the item format from nbt to minecraft:id[...components...] format used in /item replace
Thanks a lot for anyone willing to help
Continue to help post