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



×
×
  • Create New...

Important Information

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