Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

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.

  • Author

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

  • Author
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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.