datapack in mod

A question, I am making a datapack but I would like to create recipes with invented materials, is there a way to create a mod and have it execute the functions of the datapack?

Continue to help post