Jump to content

Recommended Posts

Posted

Hi, I'm upgrading my mod to Forge 1.18.2 (latest version -- 40.0.12) and I can't find a way to register my custom RecipeType.

In 1.18.1, I was using this code:

public static final ResourceLocation Furniture_Recipe_Loc = new ResourceLocation(Furnish.MODID, "furniture_making");
public static final RecipeType<FurnitureRecipe> Furniture_Recipe = RecipeType.register(Furniture_Recipe_Loc.toString());

Now it fails to load because "Registry is already frozen (trying to add key ResourceKey[minecraft:recipe_type / furnish:furniture_making])".

I've had a similar issue with blocks registering and solved it by converting all my block declarations to RegistryObject<Block> declarations, therefore using a DeferredRegister.
The problem is there is no RECIPE_TYPE registry in ForgeRegistries (only RECIPE_SERIALIZERS) which makes creating a DeferredRegister impossible. There is also no RegistryEvent.Register<RecipeType>.

Any help would be appreciated!

- Wouink

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello! Faced with the same problem. Can you please describe in more detail how you rewrote the toNetwork and fromNetwork methods?
    • Why not?   Please explain what you have tried, in detail. Step by step is installing the server, placing mod .jar files in the mods folder within the folder you installed the server, and running the run.bat file. If this is not working for you, please post the debug.log from the logs folder to a site like https://mclo.gs and post the link to it here.
    • I can't put mods on it if I only use Run.bat, I haven't been able to start it with mods, I've checked the mods and they don't have any problems but even so I understood that a created file called start.bat was used and configured, the mods would work there, if not I don't know how I can do it, I need help please, step by step if possible and be able to understand once and for all  
    • That is incorrect. Use the run.bat or run.sh to run the server.
    • Hello, I have been trying for days to create my server with forge-1.20.1-47.4.1-installer, which installs the server, but the forge-1.20.1-47.4.1.jar file, which is necessary to create the server, does not appear. I no longer know what to do. Help. hola buenas, llevo dias intentando poder hacer mi servidor con forge-1.20.1-47.4.1-installer el cual instalo el server, pero no aparece el archivo forge-1.20.1-47.4.1.jar , el cual es necesario para poder crear el server, ya no se que hacer ayuda.
  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.