mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-09-20 13:29:39 +00:00
615 lines
22 KiB
JSON
615 lines
22 KiB
JSON
{
|
|
"name": "Recipes",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"Recipes are setup in Json files under the behavior_packs /'name of pack'/ recipes directory.",
|
|
"Recipe JSON files have different structures dependent on their type."
|
|
],
|
|
"header_level": 1,
|
|
"name": "Recipes",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"Represents a furnace recipe for a furnace.'Input' items will burn and transform into items specified in 'output'."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
"\"format_version\": \"1.12\",",
|
|
"\"minecraft:recipe_furnace\": {",
|
|
"\"description\": {",
|
|
"\"identifier\": \"minecraft:furnace_beef\"",
|
|
"},",
|
|
"\"tags\": [\"furnace\", \"smoker\", \"campfire\", \"soul_campfire\"],",
|
|
"\"input\": {",
|
|
"\"item\": \"minecraft:beef\",",
|
|
"\"data\": 0,",
|
|
"\"count\": 4",
|
|
"},",
|
|
"\"output \": \"minecraft:cooked_beef\"",
|
|
"}",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Furnace Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Furnace Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"Items used as input for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "input",
|
|
"show_in_index": true,
|
|
"type": "item names"
|
|
},
|
|
{
|
|
"description": [
|
|
"Items used as output for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "output",
|
|
"show_in_index": true,
|
|
"type": "item names"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a Potion Brewing Container Recipe."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
"\"format_version\": \"1.12\",",
|
|
"\"minecraft:recipe_brewing_container\": {",
|
|
"\"description\": {",
|
|
"\t\"identifier\": \"minecraft:brew_potion_sulphur\"",
|
|
"\t},",
|
|
" ",
|
|
" \"tags\": [ \"brewing_stand\" ],",
|
|
" ",
|
|
"\t\"input\": \"minecraft:potion\",",
|
|
"\t\"reagent\": \"minecraft:gunpowder\",",
|
|
"\t\"output\": \"minecraft:splash_potion\"",
|
|
"\t}",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Potion Brewing Container Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Potion Brewing Container Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"input potion used in the brewing container recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "input",
|
|
"show_in_index": true,
|
|
"type": "potion"
|
|
},
|
|
{
|
|
"description": [
|
|
"output potion from the brewing container recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "output",
|
|
"show_in_index": true,
|
|
"type": "potion"
|
|
},
|
|
{
|
|
"description": [
|
|
"item used in the brewing container recipe with the input potion."
|
|
],
|
|
"header_level": 4,
|
|
"name": "reagent",
|
|
"show_in_index": true,
|
|
"type": "item"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used in a Brewing Container Recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a Potion Brewing Mix."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
"\"format_version\": \"1.12\",",
|
|
"\"minecraft:recipe_brewing_mix\": {",
|
|
"\"description\": {",
|
|
"\t\"identifier\": \"minecraft:brew_awkward_blaze_powder\"",
|
|
"\t},",
|
|
" ",
|
|
" \"tags\": [ \"brewing_stand\" ],",
|
|
" ",
|
|
"\t\"input\": \"minecraft:potion_type:awkward\",",
|
|
"\t\"reagent\": \"minecraft:blaze_powder\",",
|
|
"\t\"output\": \"minecraft:potion_type:strength\"",
|
|
"\t}",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Potion Brewing Mix Example:",
|
|
"header_level": 2,
|
|
"name": "Potion Brewing Mix",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"input potion used on the brewing stand."
|
|
],
|
|
"header_level": 4,
|
|
"name": "input",
|
|
"show_in_index": true,
|
|
"type": "potion"
|
|
},
|
|
{
|
|
"description": [
|
|
"output potion from mixing the input potion with the reagent on the brewing stand."
|
|
],
|
|
"header_level": 4,
|
|
"name": "output",
|
|
"show_in_index": true,
|
|
"type": "potion"
|
|
},
|
|
{
|
|
"description": [
|
|
"item used to mix with the input potion."
|
|
],
|
|
"header_level": 4,
|
|
"name": "reagent",
|
|
"show_in_index": true,
|
|
"type": "item"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used to make a brewing mix."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a shaped crafting recipe for a crafting table.",
|
|
"The key used in the pattern may be any single character except the 'space' character, which is reserved for empty slots in a recipe."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
"\"format_version\": \"1.12\",",
|
|
"\"minecraft:recipe_shaped\": {",
|
|
"\"description\": {",
|
|
"\t\"identifier\": \"minecraft:acacia_boat\"",
|
|
"\t},",
|
|
"\"tags\": [ \"crafting_table\" ],",
|
|
"\"pattern\": [",
|
|
"\t\t\t\t\"#P#\",",
|
|
"\t\t\t\t\"###\"",
|
|
"\t\t\t\t],",
|
|
"\t\"key\": {",
|
|
"\t\t\"P\": {",
|
|
"\t\t\t\"item\": \"minecraft:wooden_shovel\"",
|
|
"\t\t},",
|
|
"\t\t\"#\": {",
|
|
"\t\t\t\"item\": \"minecraft:planks\",",
|
|
"\t\t\t\"data\": 4",
|
|
"\t\t\t}",
|
|
"\t\t},",
|
|
"\"result\": {",
|
|
"\t\t\"item\": \"minecraft:boat\",",
|
|
"\t\t\"data\": 4",
|
|
"\t\t}",
|
|
"\t}",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Shaped Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Shaped Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"default": "true",
|
|
"description": [
|
|
"determines if the recipe should assume symmetry or not."
|
|
],
|
|
"header_level": 4,
|
|
"name": "assume_symmetry",
|
|
"show_in_index": true,
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"description": [
|
|
"patten key character mapped to item names."
|
|
],
|
|
"header_level": 4,
|
|
"name": "key",
|
|
"show_in_index": true,
|
|
"type": "array of key and item pairs"
|
|
},
|
|
{
|
|
"description": [
|
|
"characters that represent a pattern to be defined by keys."
|
|
],
|
|
"header_level": 4,
|
|
"name": "pattern",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used as output for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "priority",
|
|
"show_in_index": true,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"description": [
|
|
"when input items match the pattern then these items are the result."
|
|
],
|
|
"header_level": 4,
|
|
"name": "result",
|
|
"show_in_index": true,
|
|
"type": "array of item names"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used as input for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a shapeless crafting recipe."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
"\"format_version\": \"1.12\",",
|
|
"\"minecraft:recipe_shapeless\": {",
|
|
"\"description\": {",
|
|
"\t\"identifier\": \"minecraft:firecharge_coal_sulphur\"",
|
|
"\t},",
|
|
" \"priority\": 0,",
|
|
" \"ingredients\": {",
|
|
"\t \"item\": \"minecraft:fireball\",",
|
|
"\t \"data\": 0,",
|
|
"\t \"count\": 4",
|
|
" },",
|
|
"\"result\": {",
|
|
"\t \"item\": \"minecraft:blaze_powder\",",
|
|
"\t \"data\": 4",
|
|
"\t }",
|
|
"\t}",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Shapeless Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Shapeless Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"items used as input (without a shape) for the recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "ingredients",
|
|
"show_in_index": true,
|
|
"type": "array of item names"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used as output for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "priority",
|
|
"show_in_index": true,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"description": [
|
|
"these items are the result."
|
|
],
|
|
"header_level": 4,
|
|
"name": "result",
|
|
"show_in_index": true,
|
|
"type": "array of item names"
|
|
},
|
|
{
|
|
"description": [
|
|
"Item used as input for the furnace recipe."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a Smithing Transform Recipe for the Smithing Table.",
|
|
"This recipe transforms an item into another one, while retaining its properties."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
" \"format_version\": \"1.12\",",
|
|
" \"minecraft:recipe_smithing_transform\": {",
|
|
" \"description\": {",
|
|
"\t \"identifier\": \"minecraft:smithing_netherite_boots\"",
|
|
"\t },",
|
|
" ",
|
|
" \"tags\": [ \"smithing_table\" ],",
|
|
" ",
|
|
"\t \"template\": \"minecraft:netherite_upgrade_smithing_template\",",
|
|
"\t \"base\": \"minecraft:diamond_boots\",",
|
|
"\t \"addition\": \"minecraft:netherite_ingot\",",
|
|
"\t \"result\": \"minecraft:netherite_boots\"",
|
|
" }",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Smithing Transform Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Smithing Transform Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"The material needed to perform the transform operation. In case of stackable items, only 1 item is consumed. The only accepted item is \"minecraft:netherite_ingot\". Items must have the \"minecraft:transform_materials\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "addition",
|
|
"show_in_index": true,
|
|
"type": "item name"
|
|
},
|
|
{
|
|
"description": [
|
|
"The item to transform. Its properties will be copied to \"result\". The only accepted items are armor and tools. Items must have the \"minecraft:transformable_items\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "base",
|
|
"show_in_index": true,
|
|
"type": "item name"
|
|
},
|
|
{
|
|
"description": [
|
|
"The item to transform to."
|
|
],
|
|
"header_level": 4,
|
|
"name": "result",
|
|
"show_in_index": true,
|
|
"type": "item name"
|
|
},
|
|
{
|
|
"description": [
|
|
"The crafting stations the recipe is compatible with. The only accepted value is \"smithing_table\"."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
},
|
|
{
|
|
"description": [
|
|
"The template needed to perform the transform operation. In case of stackable items, only 1 item is consumed. Items must have the \"minecraft:transform_templates\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "template",
|
|
"show_in_index": true,
|
|
"type": "item name"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
},
|
|
{
|
|
"description": [
|
|
"Represents a Smithing Trim Recipe for the Smithing Table.",
|
|
"This recipe applies a colored trim pattern to an item, while preserving its other properties."
|
|
],
|
|
"examples": [
|
|
{
|
|
"name": "",
|
|
"text": [
|
|
"{",
|
|
" \"format_version\": \"1.12\",",
|
|
" \"minecraft:recipe_smithing_trim\": {",
|
|
" \"description\": {",
|
|
"\t \"identifier\": \"minecraft:smithing_diamond_boots_jungle_quartz_trim\"",
|
|
"\t },",
|
|
" ",
|
|
" \"tags\": [ \"smithing_table\" ],",
|
|
" ",
|
|
"\t \"template\": \"minecraft:jungle_temple_smithing_template\",",
|
|
"\t \"base\": \"minecraft:diamond_boots\",",
|
|
"\t \"addition\": \"minecraft:quartz\",",
|
|
" }",
|
|
"}"
|
|
]
|
|
}
|
|
],
|
|
"examples_print_mode": "code",
|
|
"examples_title": "Smithing Trim Recipe Example:",
|
|
"header_level": 2,
|
|
"name": "Smithing Trim Recipe",
|
|
"nodes": [
|
|
{
|
|
"header_level": 3,
|
|
"name": "Parameters",
|
|
"nodes": [
|
|
{
|
|
"description": [
|
|
"The material needed to perform the trim operation. It defines the color in which the pattern will be applied to the item. In case of stackable items, only 1 item is consumed. Items must have the \"minecraft:trim_materials\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "addition",
|
|
"show_in_index": true,
|
|
"type": "item name or item tag"
|
|
},
|
|
{
|
|
"description": [
|
|
"The item to trim. Its properties will be preserved. The only accepted items are armors. Items must have the \"minecraft:trimmable_armors\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "base",
|
|
"show_in_index": true,
|
|
"type": "item name or item tag"
|
|
},
|
|
{
|
|
"description": [
|
|
"The crafting stations the recipe is compatible with. The only accepted value is \"smithing_table\"."
|
|
],
|
|
"header_level": 4,
|
|
"name": "tags",
|
|
"show_in_index": true,
|
|
"type": "array of strings"
|
|
},
|
|
{
|
|
"description": [
|
|
"The template needed to perform the trim operation. It defines the pattern which will be applied to the item. In case of stackable items, only 1 item is consumed. Items must have the \"minecraft:trim_templates\" tag to be accepted into the respective UI slot."
|
|
],
|
|
"header_level": 4,
|
|
"name": "template",
|
|
"show_in_index": true,
|
|
"type": "item name or item tag"
|
|
}
|
|
],
|
|
"nodes_as_table": true,
|
|
"show_in_index": true,
|
|
"table_description_title": "Description",
|
|
"table_name_title": "Name",
|
|
"table_type_title": "Type"
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
}
|
|
],
|
|
"nodes_as_table": false,
|
|
"show_in_index": true
|
|
}
|
|
]
|
|
} |