How to create a crafting recipe?

You define recipes and register them in the GamePreInitializationEvent.

Make sure to assign your builder result to a recipe object, that you can register with the command below, or modify the command to put your builder in-line. I’d suggest object /register object for clarity purposes, esp if you want to register other custom recipes too.

ie:
Sponge.getRegistry().getCraftingRecipeRegistry().register(ShapedCraftingRecipe.builder().blah().blah().blah().build("name_tag",this) );
or ie:
Sponge.getRegistry().getCraftingRecipeRegistry().register(myrep_nametag);

Make sure to add the code to register your recipe: