Ok I got it, use this event to register if anyone has the same problem:
public void specialRecipesRegister(final RegistryEvent.Register<IRecipeSerializer<?>> event) { event.getRegistry().register(Marshmallow.MarshmallowRecipe.SERIALIZER.setRegistryName(new ResourceLocation("tds", "crafting_special_marshmallow"))); }