-
Notifications
You must be signed in to change notification settings - Fork 6
Forging Recipes
What follows is the contents of the kinetic_opal_shovel.json
file, found in data/miningmaster/recipes/forging
:
{
"type": "miningmaster:forging_recipe",
"gems": [
{
"item": "miningmaster:kinetic_opal"
}
],
"catalyst": {
"item": "minecraft:diamond_shovel"
},
"result": {
"item": "miningmaster:kinetic_opal_shovel"
},
"enchantments": [
{
"enchantment": "miningmaster:smelting",
"lvl": 1
},
{
"enchantment": "minecraft:knockback",
"lvl": 1
}
]
}
The "gem"
field corresponds to the items that are listed as enchanting gems in the gems.json
items tag file. These are the 'ingredients' used to make the "result
" item in conjunction with the "catalyst"
.
The "catalyst"
field corresponds to the items listed in the catalysts.json
items tag file that are to be consumed and transformed into the "result
" item. By default, these are Minecraft's diamond tools, but you can add any other tools from both Minecraft and other mods to this list if you so wish.
The "enchantments"
field lists what enchantments the forging process yields. The "lvl"
field dictates what level the enchantment is (This field still applies even if the enchantment only has a single level.)
To remove enchantments from a forge, simply delete the line which adds the enchantment you don't want a forge to give.
To replace or add enchantments from/to a forge, write the modID of a given mod (for example, minecraft
or miningmaster
) followed by a colon and the name of the enchantment. When adding enchantments from other mods, be sure to doublecheck the modID and given name of an enchantment in code via the mod's GitHub. The most quickly accessible place to view this information is typically in their language file.
So if I wanted to add the Launch enchantment from Allurement to the Kinetic Opal Shovel, I would check that mod's language file, note that the modID is allurement
and that the enchantment is called launch
in-code.