Create à crafting recipe with à item from another mod

Started by SharDamalis on

Topic category: Help with modding (Java Edition)

Last seen on 02:51, 29. Nov 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create à crafting recipe with à item from another mod

Hello, I am creating a mod for my personal use. But I am having a little problem. I would like to be able to craft some sculpting scissors to be able to cut stone, but in crafting this item I would like to use a metal added by another mod. Does anyone know how I could do this?

You could make this without…
Thu, 11/26/2020 - 09:09

You could make this without coding if the other mod defines a tag name for the element you intend to use

Last seen on 19:02, 22. Mar 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for suggesting a…
Sat, 01/02/2021 - 16:51

Thanks for suggesting a solution, Klemen!

Instruction:

1) making in MCreator recipe from vanilla blocks/items and exporting as own mod ("my_mod.jar"). I used iron ingots.

2) searching tag name from another mod. For example, I used tin ingot from "Simple Ores" and I found in ..\SimpleOres2-1.16.4-2.4.3.8.jar\data\forge\tags\items\ores\tin.json - tag name is:

simpleores:tin_ingot

3) extracting from ..\my_mod.jar\data\mymod\recipes\ recipe from 1), for example "my_tin_item_recipe.json"

4) editing this recipe, changing vanilla items (iron ingost) with items from another mod (as I describe in 2)

Example:

{
  "group": "myblocks",
  "type": "minecraft:crafting_shaped",
  "pattern": [
    " 1 ",
    "345"
  ],
  "key": {
    "1": {
      "item": "minecraft:arrow"
    },
    "3": {
      "item": "simpleores:tin_ingot"
    },
    "4": {
      "item": "simpleores:tin_ingot"
    },
    "5": {
      "item": "simpleores:tin_ingot"
    }
  },
  "result": {
    "item": "moreitems:tin_item",
    "count": 6
  }
}

5) import this *json back into *jar

Thats all. Excuse my poor English..

Last seen on 08:57, 11. Nov 2021
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way to do that…
Mon, 10/18/2021 - 14:41

Is there any way to do that if various items from the same mod have the same ID? I mean, all four Chaos Shards variants from Draconic Evolution share the same ID (draconigevolution:chaos_shard). The difference is the some kind of number in their names, between the larger and smaller ones.

Examples: 
 

Chaos Shard (#4413/0)

Large Chaos Fragment (#4413/1)

Small Chaos Fragment (#4413/2)

Tiny Chaos Fragment (#4413/3)

 

All of them have different names and numbers, but they also share the same ID (draconigevolution:chaos_shard). How can we add those numbers or indicators in the recipe's code to use an specific one for the recipe?