How to use items from other mods in custom recipe

Started by Hopscotch on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to use items from other mods in custom recipe

Hello, I am trying to create my own recipe to convert a bucket of Bio Diesel from Immersive Engineering to a Bucket of Bio Diesel from the Ultimate Car Mod. Is it even possible in the first place? I have already tried making the recipe with the ID for the buckets, ported over the jar file from MCreate into my modpack and it did not work. If there are alternate solutions to this (which there probably is) or I am doing something wrong, please let me know. Thank you for reading this and have a wonderful day.

 

Here is the code from the recipe element

 

{
  "type": "minecraft:crafting_shapeless",
  "ingredients": [
    {
      "tag": "item:immersiveengineering:biodiesel_bucket"
    }
  ],
  "result": {
    "item": "item:car:bio_diesel_bucket",
    "count": 1
  }
}
It is possible. I covered it…
Fri, 05/13/2022 - 10:13

It is possible. I covered it here. But commenting on your specific example, you kinda put things chaotically.

First of all, there's no point on stating "item:" inside names, as it will break the recipe. IDs work that way - mod_id:name_of_item/block. Type of the entry is stated a bit earlier - in "key".

Samely, in ingredients part, you have "tag" key, which differ from "item" key. I'd suggest changing it into item, because pretty sure that IE don't use tags for such specific things as biodiesel bucket.

I'd suggest reading the above, but if you'd need "copy-paste" example of how I'd fix it, it'd look like it:

{
  "type": "minecraft:crafting_shapeless",
  "ingredients": [
    {
      "item": "immersiveengineering:biodiesel_bucket"
    }
  ],
  "result": {
    "item": "car:bio_diesel_bucket",
    "count": 1
  }
}
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you Toma400, sorry for…
Thu, 05/19/2022 - 04:12

Thank you Toma400, sorry for the late response. I thought I had forum notifications on but I guess not lol.  Also thank you for linking to a page on how to do it because I'll probably need it in the future