From 489651511e5ba9a4296a912c8efa9d299395c572 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Wed, 17 Jul 2024 23:21:52 +0500 Subject: [PATCH 1/3] - Update example recipe tags --- source/behavior/recipes/types/base types/tags.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/behavior/recipes/types/base types/tags.json b/source/behavior/recipes/types/base types/tags.json index 1b185c7c..d52b74e8 100644 --- a/source/behavior/recipes/types/base types/tags.json +++ b/source/behavior/recipes/types/base types/tags.json @@ -1,7 +1,10 @@ { - "$id": "blockception.minecraft.behavior.1.12.0.recipe.tags", - "description": "Recipe tags 1.12.0", + "$id": "blockception.minecraft.behavior.recipe.tags", + "description": "Recipe Tags", "title": "Tags", "type": "array", - "items": { "type": "string", "title": "Tag", "examples": ["smithing_table", "deprecated"] } -} + "items": { "type": "string", "title": "Tag", "examples": [ + "crafting_table", "furnace", "smoker", "blast_furnace", "campfire", "soul_campfire", "brewing_stand", "smithing_table", "deprecated" + ] + } +} \ No newline at end of file From 6933812eaa38645e63addba10dd1259bc35b1dba Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Wed, 17 Jul 2024 23:22:05 +0500 Subject: [PATCH 2/3] - Make tags required --- source/behavior/recipes/types/recipe_shaped.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/behavior/recipes/types/recipe_shaped.json b/source/behavior/recipes/types/recipe_shaped.json index cdcbb135..62f524cb 100644 --- a/source/behavior/recipes/types/recipe_shaped.json +++ b/source/behavior/recipes/types/recipe_shaped.json @@ -1,9 +1,9 @@ { - "$id": "blockception.minecraft.behavior.1.12.0.recipe.shaped", + "$id": "blockception.minecraft.behavior.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", + "title": "Shaped Recipe", "additionalProperties": false, - "required": ["description"], + "required": ["description", "tags"], "type": "object", "properties": { "description": { "$ref": "./base types/definition.json" }, From 0f2e5ec75819c40c89448cbdd599b7eb539b624a Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Wed, 17 Jul 2024 23:22:28 +0500 Subject: [PATCH 3/3] - Add support for extent and distribution --- .../format/minecraft.feature_rules.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source/behavior/feature_rules/format/minecraft.feature_rules.json b/source/behavior/feature_rules/format/minecraft.feature_rules.json index 033a1108..973cc88a 100644 --- a/source/behavior/feature_rules/format/minecraft.feature_rules.json +++ b/source/behavior/feature_rules/format/minecraft.feature_rules.json @@ -34,6 +34,28 @@ "minimum": 1 } } + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "distribution": { + "title": "Distribution", + "description": "Distribution type", + "type": "string", + "enum": ["uniform", "fixed_grid", "jittered_grid", "gaussian", "inverse_gaussian", "triangle"] + }, + "extent": { + "title": "Extent", + "description": "Represents the range of values on which that distribution operates, from minimum to maximum.", + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "type": "number" + } + } + } } ] }