Disabling trim crafting

Does anyone know how to do this, ive tried several datapack tutorials
Continue to help post