Jump to content

How to remove a given recipe when only provided its ResourceLocation?


Recommended Posts

Posted (edited)

Getting back into modding, the last time I seriously modded was almost 6 years ago.  I'm pretty rusty and a lot has changed.  What I'm trying to do right now is right a method that can remove an item's recipe using only said item's ResourceLocation as an input.

From what I've gathered from older examples online it seems like the preferred method to do this involves using a DummyRecipe as that breaks the least amount of stuff (such as achievements related to a given item).

The problem I'm having is that most of these examples are quite dated, usually being for 1.12.

It seems that enough of the methods have changed for 1.18.2 forge that the implementation will be quite different, and that is what I'm struggling with so right now.  The basic concepts are still the same, but some of the classes I need to reference and what methods are where on said classes has been swapped around, and its giving me trouble.

 

I'm sure I could figure it out after a few days, but I figured it would make sense to ask for help as that may expedite the process.

 

Thanks in advance.

Edited by John Wheatfield
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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