Create à crafting recipe with à item from another mod

Started by SharDamalis on Thu, 11/26/2020 - 06:36

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Create à crafting recipe with à item from another mod
Thu, 11/26/2020 - 06:36

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:
  • Tracker tickets:
  • 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..