-
-
Notifications
You must be signed in to change notification settings - Fork 13
Custom Cell Forge recipes
Dominik Ziętko edited this page Nov 6, 2022
·
2 revisions
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.
-
input
- list of item stack ingredients for the recipe (max. 6 items) -
cells
- amount of Cells needed to craft the item -
output
- the resulting item stack -
priority
* - 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
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.
{
"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
}
}
{
"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 }
]
}
}
}