Started by
SharDamalis
on
Topic category: Help with Minecraft modding (Java Edition)
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 coding if the other mod defines a tag name for the element you intend to use
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..
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?