Skip to content

Commit

Permalink
Update example recipe tags, make tags required and add support for ex…
Browse files Browse the repository at this point in the history
…tent and distribution in feature rules (#300)

* - Update example recipe tags

* - Make tags required

* - Add support for extent and distribution
  • Loading branch information
Xterionix authored Jul 18, 2024
1 parent 2b6de9e commit 9a31d2c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
22 changes: 22 additions & 0 deletions source/behavior/feature_rules/format/minecraft.feature_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
]
}
Expand Down
11 changes: 7 additions & 4 deletions source/behavior/recipes/types/base types/tags.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
6 changes: 3 additions & 3 deletions source/behavior/recipes/types/recipe_shaped.json
Original file line number Diff line number Diff line change
@@ -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" },
Expand Down

0 comments on commit 9a31d2c

Please sign in to comment.