Skip to content

Commit

Permalink
Fixing recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Jan 6, 2024
1 parent 50f8ffe commit 84b19ed
Show file tree
Hide file tree
Showing 12 changed files with 221 additions and 193 deletions.
22 changes: 0 additions & 22 deletions source/behavior/recipes/1.12.0/recipes.json

This file was deleted.

40 changes: 21 additions & 19 deletions source/behavior/recipes/recipes.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.recipes",
"examples": [
{
"format_version": "1.20.41",
"minecraft:recipe_shaped": {
"description": { "identifier": "minecraft:item" },
"tags": ["crafting_table"],
"pattern": [],
"key": {},
"result": { "item": "minecraft:boat", "data": 4 }
}
}
],
"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" } } }
]
"$id": "blockception.minecraft.behavior.1.12.0.recipe",
"description": "Minecraft recipe",
"required": ["format_version"],
"additionalProperties": false,
"minProperties": 2,
"type": "object",
"title": "Recipe",
"descreiption": "A recipe is a set of ingredients and a result that can be crafted using a crafting table, furnace, brewing stand, or stonecutter.",
"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" }
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.definition",
"description": "Recipe definition 1.12.0",
"title": "Definition",
"type": "object",
"properties": {
"identifier": {
"type": "string",
"pattern": "[a-z0-9_:\\-]+",
"title": "Recipe Identifier",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
}
},
"additionalProperties": false
}
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.definition",
"description": "Recipe definition 1.12.0",
"title": "Definition",
"type": "object",
"properties": {
"identifier": {
"type": "string",
"pattern": "[a-z0-9_:\\-]+",
"title": "Recipe Identifier",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
}
},
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.item",
"description": "Recipe item 1.12.0",
"title": "Item",
"oneOf": [
{ "type": "string", "title": "Item Identifier" },
{
"additionalProperties": false,
"type": "object",
"required": ["item"],
"properties": {
"item": { "type": "string", "title": "Item Identifier" },
"data": { "type": "integer", "minimum": 0, "title": "Item Data Value" },
"count": { "type": "integer", "minimum": 1, "default": 1, "title": "Count" }
}
}
]
}
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.item",
"description": "Recipe item 1.12.0",
"title": "Item",
"oneOf": [
{ "type": "string", "title": "Item Identifier" },
{
"additionalProperties": false,
"type": "object",
"required": ["item"],
"properties": {
"item": { "type": "string", "title": "Item Identifier" },
"data": { "type": "integer", "minimum": 0, "title": "Item Data Value" },
"count": { "type": "integer", "minimum": 1, "default": 1, "title": "Count" }
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.tags",
"description": "Recipe tags 1.12.0",
"title": "Tags",
"type": "array",
"items": { "type": "string", "title": "Tag", "examples": ["smithing_table", "deprecated"] }
}
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.tags",
"description": "Recipe tags 1.12.0",
"title": "Tags",
"type": "array",
"items": { "type": "string", "title": "Tag", "examples": ["smithing_table", "deprecated"] }
}
43 changes: 43 additions & 0 deletions source/behavior/recipes/types/base types/unlock.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"$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`..",
"title": "Furnace Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"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" }
}
}
{
"$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`..",
"title": "Furnace Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"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" }
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.container",
"description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"output": {
"type": "string",
"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" }
}
}
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.container",
"description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.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" },
"output": {
"type": "string",
"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" }
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.mix",
"description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"input": { "type": "string", "description": "Input potion used on the brewing stand.", "title": "Input" },
"output": {
"type": "string",
"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" }
}
}
{
"$id": "blockception.minecraft.behavior.1.12.0.recipe.brewing.mix",
"description": "Represents a Potion Brewing Container Recipe..",
"title": "Brewing Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.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" },
"output": {
"type": "string",
"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" }
}
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
{
"$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..",
"title": "Shaped Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"key": {
"type": "object",
"description": "Patten key character mapped to item names.",
"title": "Key",
"minProperties": 1,
"additionalProperties": { "$ref": "./base types/item.json" }
},
"group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"pattern": {
"type": "array",
"description": "Characters that represent a pattern to be defined by keys.",
"title": "Pattern",
"maxItems": 3,
"minItems": 1,
"items": { "type": "string", "title": "Pattern" }
},
"priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" },
"result": {
"description": "When input items match the pattern then these items are the result.",
"title": "Result",
"oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }]
}
}
}
{
"$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..",
"title": "Shaped Recipe 1.12.0",
"additionalProperties": false,
"required": ["description"],
"type": "object",
"properties": {
"description": { "$ref": "./base types/definition.json" },
"tags": { "$ref": "./base types/tags.json" },
"unlock": { "$ref": "./base types/unlock.json" },
"key": {
"type": "object",
"description": "Patten key character mapped to item names.",
"title": "Key",
"minProperties": 1,
"additionalProperties": { "$ref": "./base types/item.json" }
},
"group": { "type": "string", "title": "Group", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"pattern": {
"type": "array",
"description": "Characters that represent a pattern to be defined by keys.",
"title": "Pattern",
"maxItems": 3,
"minItems": 1,
"items": { "type": "string", "title": "Pattern" }
},
"priority": { "type": "integer", "description": "Item used as output for the furnace recipe.", "title": "Priority" },
"result": {
"description": "When input items match the pattern then these items are the result.",
"title": "Result",
"oneOf": [{ "$ref": "./base types/item.json" }, { "type": "array", "items": { "$ref": "./base types/item.json" } }]
}
}
}
Loading

0 comments on commit 84b19ed

Please sign in to comment.