Maybe you were looking for...

Getting the name/id of a block using commands

I want to make a scale datapack in Minecraft, however to do that I need to know which block is currently being 'scanned'. Assuming there was a /whatblock comman