Replace "modern" stone types near the player with just stone

Title says it all. I'm looking at just trying to make a datapack that runs every tick replaces andasite/diorite/granite and deepslate* blocks with their stone variants. this is ver. 1.21.1 I've downloaded a template / boilerplate for datapacks hence why most the files are empty.
Continue to help post