How can I make my custom blocks "have" NBT data, such as damage values, or full blown custom NBT tags? My specific case is adding a "luck" component to my custom block, which can be anywhere between
100, and depending on that value, when placed and broken in the world, would do something different, for example, if the value is positive, it would drop a diamond, when it's negative it would summon primed tnt, and if it's zero it would create a dirt hut. I think I can work those out, but I first need my block to be able to store data.
Thank you for your time.