- 35
- 0
Я хотел сделать так что бы когда у игрока появлялся слиток меди то ему в книжку рецепта заносился рецепт моего кастомного предмета, механика как в ваниле. Но у меня не работало, брал пример как сделано в обычном майнкрафте, может подскажете в чем проблема.
copper_component:
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_copper_ingot": {
"conditions": {
"items": [
{
"items": "minecraft:copper_ingot"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "zone-defender:copper_component"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_copper_ingot"
]
],
"rewards": {
"recipes": [
"zone-defender:copper_component"
]
}
}