Jump to content

Recommended Posts

Posted

In the past I did it by calling GameRegistry.addRecipe(...) and passed the ShapelessOreRecipe. The method no longer exists. I have tried registering a recipe like one normally would, but creating a ShapelessOreRecipe and then getting the ingredients with

shapelessOreRecipe.getIngredients()

 

one by one. Didn't work. I also tried

 

CraftingHelper.getIngredient()

 

with the string of the ore recipe. Didn't work either.

 

How would I go about it?

Posted

There are a lot of threads related to recipes in 1.12 on this subforum that you could quickly find. Create a valid json that is your recipe and put it in assets/%modid%/recipes. And you are done - forge will load the recipe for you automatically. See this thread for more info. Also here is the initial gist that shows the basic syntax and the ideas behind the json recipe system.

Posted (edited)

I don't understand. It still doesn't work. I am talking about OreDictionary recipes. The following was no success with JSON:

 

{
  "type": "forge:shapeless_ore",
  "group": "magenta_dye",
  "ingredients": [
    {
      "item": "dyeMagenta"
    },
    {
      "item": "dyeWhite"
    }
  ],
  "result": {
    "item": "minecraft:dye",
    "data": 6,
    "count": 2
  }
}

 

I get JsonSyntaxException: Unknown recipe type: forge:shapeless_ore. I understand then that there is no such thing as type forge:shapeless_ore. But then, what is there to use OreDictionary recipes?

Edited by ctbe
Posted
1 hour ago, V0idWa1k3r said:

It is forge:ore_shapeless, not forge:shapeless_ore

 

Thank you. That solved it. The final recipe looks like so

 

{
  "type": "forge:ore_shapeless",
  "group": "magenta_dye",
  "ingredients": [
    {
      "type": "forge:ore_dict",
      "ore": "dyeWhite"
    },
    {
      "type": "forge:ore_dict",
      "ore": "dyeMagenta"
    }
  ],
  "result": {
    "item": "minecraft:dye",
    "data": 6,
    "count": 2
  }
}

 

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.