convert block to string id + blockstates 1.20.4

does anyone know a good datapack for turning a block into its id and blockstates? like, for storing/using in /summon commands for falling blocks/block displays like the idea is that i could run a function at a block location and get its data, like that sort of utility
Continue to help post