Fixing recipes

This commit is contained in:
DaanV2
2024-01-06 23:22:39 +01:00
parent 50f8ffe05a
commit 84b19ed1d5
12 changed files with 221 additions and 193 deletions

View File

@@ -1,22 +0,0 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe",
"description": "Minecraft recipe",
"required": ["format_version"],
"additionalProperties": false,
"minProperties": 2,
"type": "object",
"title": "Recipe",
"properties": {
"format_version": {
"type": "string",
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
"title": "Format Version"
},
"minecraft:recipe_furnace": { "$ref": "./types/furnace.json" },
"minecraft:recipe_brewing_container": { "$ref": "./types/recipe_brewing_container.json" },
"minecraft:recipe_brewing_mix": { "$ref": "./types/recipe_brewing_mix.json" },
"minecraft:recipe_shaped": { "$ref": "./types/recipe_shaped.json" },
"minecraft:recipe_shapeless": { "$ref": "./types/recipe_shapeless.json" },
"minecraft:recipe_smithing_transform": { "$ref": "./types/recipe_smithing_transform.json" }
}
}

View File

@@ -1,21 +1,23 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behavior.1.12.0.recipe",
"$id": "blockception.minecraft.behavior.recipes", "description": "Minecraft recipe",
"examples": [ "required": ["format_version"],
{ "additionalProperties": false,
"format_version": "1.20.41", "minProperties": 2,
"minecraft:recipe_shaped": { "type": "object",
"description": { "identifier": "minecraft:item" }, "title": "Recipe",
"tags": ["crafting_table"], "descreiption": "A recipe is a set of ingredients and a result that can be crafted using a crafting table, furnace, brewing stand, or stonecutter.",
"pattern": [], "properties": {
"key": {}, "format_version": {
"result": { "item": "minecraft:boat", "data": 4 } "type": "string",
} "description": "A version that tells minecraft what type of data format can be expected when reading this file.",
} "title": "Format Version"
], },
"allOf": [ "minecraft:recipe_furnace": { "$ref": "./types/furnace.json" },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.12" } } }, "then": { "$ref": "./1.12.0/recipes.json" } }, "minecraft:recipe_brewing_container": { "$ref": "./types/recipe_brewing_container.json" },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.12.0" } } }, "then": { "$ref": "./1.12.0/recipes.json" } }, "minecraft:recipe_brewing_mix": { "$ref": "./types/recipe_brewing_mix.json" },
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } "minecraft:recipe_shaped": { "$ref": "./types/recipe_shaped.json" },
] "minecraft:recipe_shapeless": { "$ref": "./types/recipe_shapeless.json" },
"minecraft:recipe_smithing_transform": { "$ref": "./types/recipe_smithing_transform.json" }
}
} }

View File

@@ -1,16 +1,16 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.definition", "$id": "blockception.minecraft.behavior.1.12.0.recipe.definition",
"description": "Recipe definition 1.12.0", "description": "Recipe definition 1.12.0",
"title": "Definition", "title": "Definition",
"type": "object", "type": "object",
"properties": { "properties": {
"identifier": { "identifier": {
"type": "string", "type": "string",
"pattern": "[a-z0-9_:\\-]+", "pattern": "[a-z0-9_:\\-]+",
"title": "Recipe Identifier", "title": "Recipe Identifier",
"description": "UNDOCUMENTED.", "description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
} }
}, },
"additionalProperties": false "additionalProperties": false
} }

View File

@@ -1,18 +1,18 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.item", "$id": "blockception.minecraft.behavior.1.12.0.recipe.item",
"description": "Recipe item 1.12.0", "description": "Recipe item 1.12.0",
"title": "Item", "title": "Item",
"oneOf": [ "oneOf": [
{ "type": "string", "title": "Item Identifier" }, { "type": "string", "title": "Item Identifier" },
{ {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"required": ["item"], "required": ["item"],
"properties": { "properties": {
"item": { "type": "string", "title": "Item Identifier" }, "item": { "type": "string", "title": "Item Identifier" },
"data": { "type": "integer", "minimum": 0, "title": "Item Data Value" }, "data": { "type": "integer", "minimum": 0, "title": "Item Data Value" },
"count": { "type": "integer", "minimum": 1, "default": 1, "title": "Count" } "count": { "type": "integer", "minimum": 1, "default": 1, "title": "Count" }
} }
} }
] ]
} }

View File

@@ -1,7 +1,7 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.tags", "$id": "blockception.minecraft.behavior.1.12.0.recipe.tags",
"description": "Recipe tags 1.12.0", "description": "Recipe tags 1.12.0",
"title": "Tags", "title": "Tags",
"type": "array", "type": "array",
"items": { "type": "string", "title": "Tag", "examples": ["smithing_table", "deprecated"] } "items": { "type": "string", "title": "Tag", "examples": ["smithing_table", "deprecated"] }
} }

View File

@@ -0,0 +1,43 @@
{
"title": "Item",
"$id": "blockception.minecraft.behavior.recipe.unlock",
"description": "Unlock achievement",
"type": "object",
"required": ["context"],
"oneOf": [
{
"properties": {
"context": {
"type": "string",
"title": "Context",
"description": "The context of the achievement to unlock"
}
}
},
{
"properties": {
"item": {
"type": "string",
"title": "Item",
"examples": ["minecraft:stick"],
"description": "The item to unlock"
},
"data": {
"type": "integer",
"title": "Data",
"description": "The data of the item to unlock"
}
}
},
{
"properties": {
"tag": {
"type": "string",
"title": "Item Tag",
"description": "The item to unlock",
"examples": ["minecraft:planks", "minecraft:wooden_slabs"]
}
}
}
]
}

View File

@@ -1,14 +1,14 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.furnace", "$id": "blockception.minecraft.behavior.1.12.0.recipe.furnace",
"description": "Represents a furnace recipe for a furnace.'Input` items will burn and transform into items specified in `output`..", "description": "Represents a furnace recipe for a furnace.'Input` items will burn and transform into items specified in `output`..",
"title": "Furnace Recipe 1.12.0", "title": "Furnace Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"input": { "type": "string", "description": "Items used as input for the furnace recipe.", "title": "Input" }, "input": { "type": "string", "description": "Items used as input for the furnace recipe.", "title": "Input" },
"output": { "type": "string", "description": "Items used as output for the furnace recipe.", "title": "Output" } "output": { "type": "string", "description": "Items used as output for the furnace recipe.", "title": "Output" }
} }
} }

View File

@@ -1,19 +1,20 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.container", "$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.container",
"description": "Represents a Potion Brewing Container Recipe..", "description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0", "title": "Brewing Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" }, "unlock": { "$ref": "./base types/unlock.json" },
"output": { "input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"type": "string", "output": {
"description": "Output potion from mixing the input potion with the reagent on the brewing stand.", "type": "string",
"title": "Output" "description": "Output potion from mixing the input potion with the reagent on the brewing stand.",
}, "title": "Output"
"reagent": { "type": "string", "description": "Item used to mix with the input potion.", "title": "Reagent" } },
} "reagent": { "type": "string", "description": "Item used to mix with the input potion.", "title": "Reagent" }
} }
}

View File

@@ -1,19 +1,20 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.mix", "$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.mix",
"description": "Represents a Potion Brewing Container Recipe..", "description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0", "title": "Brewing Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" }, "unlock": { "$ref": "./base types/unlock.json" },
"output": { "input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"type": "string", "output": {
"description": "Output potion from mixing the input potion with the reagent on the brewing stand.", "type": "string",
"title": "Output" "description": "Output potion from mixing the input potion with the reagent on the brewing stand.",
}, "title": "Output"
"reagent": { "type": "string", "description": "Item used to mix with the input potion.", "title": "Reagent" } },
} "reagent": { "type": "string", "description": "Item used to mix with the input potion.", "title": "Reagent" }
} }
}

View File

@@ -1,34 +1,35 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.shaped", "$id": "blockception.minecraft.behavior.1.12.0.recipe.shaped",
"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..", "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..",
"title": "Shaped Recipe 1.12.0", "title": "Shaped Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"key": { "unlock": { "$ref": "./base types/unlock.json" },
"type": "object", "key": {
"description": "Patten key character mapped to item names.", "type": "object",
"title": "Key", "description": "Patten key character mapped to item names.",
"minProperties": 1, "title": "Key",
"additionalProperties": { "$ref": "./base types/item.json" } "minProperties": 1,
}, "additionalProperties": { "$ref": "./base types/item.json" }
"group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }, },
"pattern": { "group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"type": "array", "pattern": {
"description": "Characters that represent a pattern to be defined by keys.", "type": "array",
"title": "Pattern", "description": "Characters that represent a pattern to be defined by keys.",
"maxItems": 3, "title": "Pattern",
"minItems": 1, "maxItems": 3,
"items": { "type": "string", "title": "Pattern" } "minItems": 1,
}, "items": { "type": "string", "title": "Pattern" }
"priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" }, },
"result": { "priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" },
"description": "When input items match the pattern then these items are the result.", "result": {
"title": "Result", "description": "When input items match the pattern then these items are the result.",
"oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }] "title": "Result",
} "oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }]
} }
} }
}

View File

@@ -1,24 +1,25 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.shapeless", "$id": "blockception.minecraft.behavior.1.12.0.recipe.shapeless",
"description": "Represents a shapeless crafting recipe..", "description": "Represents a shapeless crafting recipe..",
"title": "Shapeless Recipe 1.12.0", "title": "Shapeless Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"ingredients": { "unlock": { "$ref": "./base types/unlock.json" },
"description": "Items used as input (without a shape) for the recipe.", "ingredients": {
"title": "Ingredients", "description": "Items used as input (without a shape) for the recipe.",
"oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }] "title": "Ingredients",
}, "oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }]
"group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }, },
"priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" }, "group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"result": { "priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" },
"description": "When input items match the pattern then these items are the result.", "result": {
"title": "Result", "description": "When input items match the pattern then these items are the result.",
"oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }] "title": "Result",
} "oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }]
} }
} }
}

View File

@@ -1,13 +1,14 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.recipe_smithing_transform", "$id": "blockception.minecraft.behavior.1.12.0.recipe.recipe_smithing_transform",
"description": "Represents a smithing table crafting recipe..", "description": "Represents a smithing table crafting recipe..",
"title": "Smithing transform Recipe 1.12.0", "title": "Smithing Transform Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"properties": { "properties": {
"description": { "$ref": "./base types/definition.json" }, "description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" }, "tags": { "$ref": "./base types/tags.json" },
"unlock": { "$ref": "./base types/unlock.json" },
"base": { "base": {
"description": "Item used as base for the smithing recipe.", "description": "Item used as base for the smithing recipe.",
"title": "Base", "title": "Base",