I have an block that stores its content when broken via the loot table functions, like this:
im not sure how to acces that information from the ItemStack#addInformation method, at the moment i have this in my tile, which all works, breaking and placing stays with the same item and variable values:
and on the add info i have this, which i knew it wouldn't work, but im not sure how to approach it: