mini blocks

Hey, im relatively new to datapacks so i need a little help. Im currently trying to figure out how to make a tool that tracks the direction im facing in order to make it place "blocks" there. Specifically, im trying to get a tool that allows me to place "mini blocks". In this case, these "mini blocks" are simply made of shrunken shulkers riding on armor stands; so the tool im trying to make should be able to summon the shulker at the position im clicking. I would prefer if the tool itself is made of a block that vanishes the moment i use it, so i could resemble a real block, just a tiny version of it.
Continue to help post