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"
},
"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" }
} }
}
],
"allOf": [
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.12" } } }, "then": { "$ref": "./1.12.0/recipes.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.12.0" } } }, "then": { "$ref": "./1.12.0/recipes.json" } },
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
]
} }

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

@@ -8,6 +8,7 @@
"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" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" }, "input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"output": { "output": {
"type": "string", "type": "string",

View File

@@ -8,6 +8,7 @@
"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" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" }, "input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"output": { "output": {
"type": "string", "type": "string",

View File

@@ -8,6 +8,7 @@
"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" },
"key": { "key": {
"type": "object", "type": "object",
"description": "Patten key character mapped to item names.", "description": "Patten key character mapped to item names.",

View File

@@ -8,6 +8,7 @@
"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" },
"ingredients": { "ingredients": {
"description": "Items used as input (without a shape) for the recipe.", "description": "Items used as input (without a shape) for the recipe.",
"title": "Ingredients", "title": "Ingredients",

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",