How do i detect if a player placed a crafting table

So im using a different datapack (itemdb) to have custom crafting which relys on the custommodeldata/nbt data of the items but it needs a command to execute the custom crafter so what im trying to do is detect when a player places a crafting table and then replace it with the custom crafter (it also supports vanilla) version is 1.18.2

Continue to help post