Custom Cell Forge recipes - mim1q/MineCells GitHub Wiki
You can create your own recipes to be crafted in the Cell Forge by creating a custom datapack. The recipes are stored in .json files in the data/<id>/recipes/ directory.
Parameters
input- list of item stack ingredients for the recipe (max. 6 items)cells- amount of Cells needed to craft the itemoutput- the resulting item stackpriority* - recipes with higher priority will appear higher up in the menu (default: 0)advancement* - ID of an advancement that is required to craft the item. The recipe will not show up in the Cell Forge GUI unless the player has acquired the given advancement.
* optional
Creating your own recipe
To add a custom recipe, create the recipe file, e.g. data/examplemod/recipes/magic_sword.json.
You can use the following as a base for the recipe:
{
"type": "minecells:cell_forge_recipe",
"input": [
{ "id": "minecraft:diamond_sword", "Count": 1 },
{ "id": "minecraft:gold_ingot", "Count": 32 }
],
"cells": 50,
"output": {
"id": "examplemod:magic_sword",
"Count": 1
}
}
You can modify the input, cells and output fields.
"type": "minecells:cell_forge_recipe" is required for Minecraft to know that this is a recipe for the Cell Forge.
Other examples
Priority and required advancement
{
"type": "minecells:cell_forge_recipe",
"priority": 10,
"advancement": "minecraft:nether/summon_wither",
"input": [
{ "id": "minecraft:diamond_sword", "Count": 1 },
{ "id": "minecraft:nether_star", "Count": 1 }
],
"cells": 100,
"output": {
"id": "examplemod:nether_sword",
"Count": 1
}
}
NBT tags (only supported for output)
{
"type": "minecells:cell_forge_recipe",
"input": [
{ "id": "minecraft:book", "Count": 1 }
],
"cells": 250,
"output": {
"id": "minecraft:enchanted_book",
"Count": 1,
"tag": {
"StoredEnchantments": [
{ "id": "mending", "lvl": 1 }
]
}
}
}