Fill in some undocumented entries (#356)

* Add permutations description

* Adjust grammar

* Update description of "num_mip_levels"

* Update "atlas_tile" and "blend_frames" property

Some properties had completely incorrect titles as well, those were fixed in this commit too.

* Update JSON UI schema

* Update item schema

* Update terrain_texture schema

* Update animations schema

* Update go_home.json

* Update textures schemas
This commit is contained in:
BrodBlox09
2025-06-25 20:35:53 +02:00
committed by GitHub
parent c5da42a423
commit 4e6f730320
10 changed files with 43 additions and 37 deletions

View File

@@ -3,14 +3,17 @@
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a
change, creating an issue for a feature request is also acceptable. For smaller fixes, additions, or changes a simple fork and pull request is sufficient. change, creating an issue for a feature request is also acceptable. For smaller fixes, additions, or changes a simple fork and pull request is sufficient.
Please note we have a [code of conduct](CODE_OF_CONDUCT.md), please follow it in all your interactions with the project. Please note: We have a [Code of Conduct](CODE_OF_CONDUCT.md) that should be followed in all interactions with this project.
## Titles ## Titles
Titles of elements or object in schemas are preferered to be a capitilized version of the name of the object replacing any special character with a space for example. Some are in need Titles of elements or objects in schemas should be a capitilized version of the name of the object, replacing any special character with a space for example. Some are in need
of version numbering (behaviors) to help with debugging complex schemas of version numbering (behaviors) to help with debugging complex schemas.
## Description ## Description
Descriptions are to be 1:1 with Microsofts original description of said item. If none are provided or the object doesn't exist in official documentation but is a feature, then Descriptions are to be 1:1 with Microsoft's original description of said item. If none are provided or the object doesn't exist in official documentation but is a feature, then
replace the description with `UNDOCUMENTED`. Or fill in a general description that would hold true even if any changes are made to the workings of the item. replace the description with `UNDOCUMENTED` or, preferably, fill in a general description that would hold true even if any changes are made to the workings of the item.
When entering descriptions that are not 1:1 with Microsoft's documentation, be sure to follow the
[Contributor Style Guide](https://learn.microsoft.com/en-us/minecraft/creator/documents/styleguide?view=minecraft-bedrock-stable) provided by Microsoft.

View File

@@ -61,7 +61,7 @@
}, },
"type": "object", "type": "object",
"title": "Animation", "title": "Animation",
"description": "Animation for behavior for.", "description": "An animation definition for an entity.",
"required": ["format_version", "animations"], "required": ["format_version", "animations"],
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
@@ -74,19 +74,19 @@
"additionalProperties": { "additionalProperties": {
"title": "Animation", "title": "Animation",
"type": "object", "type": "object",
"description": "A single animation definition for.", "description": "A single animation definition for an entity.",
"additionalProperties": false, "additionalProperties": false,
"propertyNames": { "examples": ["animation.example.foo"] }, "propertyNames": { "examples": ["animation.example.foo"] },
"properties": { "properties": {
"animation_length": { "type": "number", "description": "The time in seconds this animation will last.", "title": "Animation Length" }, "animation_length": { "type": "number", "description": "The time in seconds this animation will last.", "title": "Animation Length" },
"loop": { "loop": {
"type": "boolean", "type": "boolean",
"description": "Whenever this animation should loop once it reaches the end, will only happen if the animation is still active.", "description": "If set to true, this animation will loop (as long as it remains active).",
"title": "Loop" "title": "Loop"
}, },
"timeline": { "timeline": {
"title": "Timeline", "title": "Timeline",
"description": "A timeline specification, property names are timestamps.", "description": "A timeline specification, where property names are timestamps.",
"type": "object", "type": "object",
"propertyNames": { "pattern": "^(\\d+\\.\\d+|\\d+)$", "examples": ["0.0", "1.0"] }, "propertyNames": { "pattern": "^(\\d+\\.\\d+|\\d+)$", "examples": ["0.0", "1.0"] },
"additionalProperties": { "additionalProperties": {
@@ -98,7 +98,7 @@
}, },
"anim_time_update": { "anim_time_update": {
"title": "Animation Time Update", "title": "Animation Time Update",
"description": "How does time pass when playing the animation. Defaults to `query.anim_time + query.delta_time` which means advance in seconds.", "description": "How time passes when playing the animation. Defaults to `query.anim_time + query.delta_time` which means advance in seconds.",
"$ref": "../../molang/number.json" "$ref": "../../molang/number.json"
} }
} }

View File

@@ -136,14 +136,15 @@
"permutations": { "permutations": {
"type": "array", "type": "array",
"title": "Permutations", "title": "Permutations",
"description": "UNDOCUMENTED.", "description": "An array of different versions of a block, allowing you to specify which components you want the block to have under certain conditions.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"items": { "items": {
"title": "Permutation", "title": "Permutation",
"description": "UNDOCUMENTED.", "description": "A permutation of a block, which will be applied given the condition is met.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": [ "condition" ],
"properties": { "properties": {
"condition": { "condition": {
"title": "Condition", "title": "Condition",

View File

@@ -10,7 +10,7 @@
"goal_radius": { "goal_radius": {
"type": "number", "type": "number",
"default": 0.5, "default": 0.5,
"description": "Distance in blocks within the mob considers it has reached the goal. This is the `wiggle room` to stop the AI from bouncing back and forth trying to reach a specific spot", "description": "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot",
"title": "Goal Radius" "title": "Goal Radius"
}, },
"interval": { "interval": {

View File

@@ -3,7 +3,7 @@
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],
"type": "object", "type": "object",
"description": "UNDOCUMENTED.", "description": "An item definition.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Item", "title": "Item",
"properties": { "properties": {
@@ -11,7 +11,7 @@
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"title": "Description", "title": "Description",
"description": "The description for this item", "description": "The description for this item.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"identifier": { "identifier": {

View File

@@ -12,29 +12,31 @@
"type": "object", "type": "object",
"properties": { "properties": {
"atlas_index": { "atlas_index": {
"description": "UNDOCUMENTED.", "description": "The index of the texture array inside the definition of that shortname.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Atlas Index", "title": "Atlas Index",
"type": "integer" "type": "integer"
}, },
"atlas_tile": { "atlas_tile": {
"description": "UNDOCUMENTED.", "description": "The shortname defined in the terrain_texture JSON file.",
"markdownDescription": "The shortname defined in the terrain_texture.json file.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"pattern": "^[a-z0-9_:\\-]*$", "pattern": "^[a-z0-9_:\\-]*$",
"title": "Atlas Index", "title": "Atlas Title",
"type": "string" "type": "string"
}, },
"atlas_tile_variant": { "atlas_tile_variant": {
"description": "UNDOCUMENTED.", "description": "The variant of the block's texture array inside the shortname's block variation.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Atlas Index", "title": "Atlas Tile Variant",
"type": "integer" "type": "integer"
}, },
"blend_frames": { "blend_frames": {
"description": "UNDOCUMENTED.", "description": "Whether or not Minecraft should interpolate between frames.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Atlas Index", "title": "Blend Frames",
"type": "boolean" "type": "boolean",
"default": true
}, },
"flipbook_texture": { "flipbook_texture": {
"description": "A texture file.", "description": "A texture file.",
@@ -44,7 +46,7 @@
}, },
"frames": { "frames": {
"title": "Frames", "title": "Frames",
"description": "The collection of frame index to display.", "description": "The order in which frame indices to display. Duplicate frames are allowed.",
"items": { "items": {
"description": "The index of the frame.", "description": "The index of the frame.",
"minimum": 0, "minimum": 0,
@@ -54,10 +56,11 @@
"type": "array" "type": "array"
}, },
"replicate": { "replicate": {
"description": "UNDOCUMENTED.", "description": "Sets the size of pixels.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Atlas Index", "title": "Replicate",
"type": "integer" "type": "integer",
"default": 1
}, },
"ticks_per_frame": { "ticks_per_frame": {
"description": "The amount of ticks to wait between frames.", "description": "The amount of ticks to wait between frames.",

View File

@@ -39,7 +39,7 @@
"items": { "items": {
"type": "object", "type": "object",
"title": "Variantion", "title": "Variantion",
"description": "One of the variantions, specified along with a possible weight.", "description": "One of the variations, specified along with a possible weight.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"required": ["path"], "required": ["path"],
"properties": { "properties": {
@@ -54,22 +54,22 @@
} }
}, },
"properties": { "properties": {
"num_mip_levels": { "type": "integer", "title": "Num Mip Levels", "description": "Sets the number of mipmap levels for better texture quality at varying distances.", "$comment": "UNDOCUMENTED" }, "num_mip_levels": { "minimum": 0, "maximum": 4, "default": 4, "type": "integer", "title": "Num Mip Levels", "description": "Sets the number of mipmap levels for reducing texture quality at varying distances. More mipmap levels means reduced texture quality at farther distances.", "$comment": "UNDOCUMENTED" },
"padding": { "type": "integer", "title": "Padding", "description": "Adds buffer space to prevent textures from bleeding into each other.", "$comment": "UNDOCUMENTED" }, "padding": { "type": "integer", "title": "Padding", "description": "Adds buffer space to prevent textures from bleeding into each other.", "$comment": "UNDOCUMENTED" },
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }, "resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "The name of your resource pack, which should match the name in this pack's manifest.", "markdownDescription": "The name of your resource pack, which should match the name in `manifest.json`.", "$comment": "UNDOCUMENTED" },
"texture_data": { "texture_data": {
"type": "object", "type": "object",
"propertyNames": { "pattern": "^[a-z0-9_:.\\-]*$" }, "propertyNames": { "pattern": "^[a-z0-9_:.\\-]*$" },
"additionalProperties": { "additionalProperties": {
"type": "object", "type": "object",
"title": "Texture Data", "title": "Texture Data",
"description": "UNDOCUMENTED.", "description": "Describes the texture, including properties like the path to the texture.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"textures": { "oneOf": [{ "$ref": "#/definitions/texture" }, { "type": "array", "items": { "$ref": "#/definitions/texture" } }] } "textures": { "oneOf": [{ "$ref": "#/definitions/texture" }, { "type": "array", "items": { "$ref": "#/definitions/texture" } }] }
} }
}, },
"description": "UNDOCUMENTED.", "description": "A JSON object with shortnames and texture data.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Texture Data" "title": "Texture Data"
}, },

View File

@@ -47,10 +47,11 @@
}, },
"binding_type": { "binding_type": {
"title": "Binding Type", "title": "Binding Type",
"description": "The type of the binding.", "description": "The type of the binding. The default is global.",
"anyOf": [ "anyOf": [
{ {
"enum": ["collection", "global", "collection_details", "none", "view"] "enum": ["collection", "global", "collection_details", "none", "view"],
"default": "global"
}, },
{ {
"$ref": "../../general/variable.json" "$ref": "../../general/variable.json"

View File

@@ -3,7 +3,7 @@
"description": "The size of the font.", "description": "The size of the font.",
"anyOf": [ "anyOf": [
{ {
"enum": ["normal"] "enum": [ "small", "normal", "large", "extra_large" ]
}, },
{ {
"$ref": "../../general/item_ref.json" "$ref": "../../general/item_ref.json"

View File

@@ -34,13 +34,11 @@
"items": [ "items": [
{ {
"title": "Width", "title": "Width",
"type": "string",
"description": "A variable", "description": "A variable",
"$ref": "#/definitions/size_coord" "$ref": "#/definitions/size_coord"
}, },
{ {
"title": "Height", "title": "Height",
"type": "string",
"description": "A variable", "description": "A variable",
"$ref": "#/definitions/size_coord" "$ref": "#/definitions/size_coord"
} }