mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-09-26 03:25:17 +00:00
202 lines
6.1 KiB
JSON
202 lines
6.1 KiB
JSON
{
|
|
"$id": "1677381825",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"2208326140": {
|
|
"description": "Adds the \"minecraft:cardinal_direction\" and/or \"minecraft:facing_direction\" states and setter function to the block.",
|
|
"properties": {
|
|
"enabled_states": {
|
|
"description": "Which states to enable. Must specify at least one. Options: [\"minecraft:cardinal_direction\", \"minecraft:facing_direction\"].",
|
|
"items": {
|
|
"pattern": "^(minecraft:cardinal_direction|minecraft:facing_direction)$",
|
|
"type": "string"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 1,
|
|
"type": "array"
|
|
},
|
|
"y_rotation_offset": {
|
|
"description": "The y rotation offset to apply to the block. Must be [0.0, 90.0, 180.0, 270.0, 360.0]. Default is 0, meaning if the player is facing north, the \"minecraft:cardinal_direction\" and/or \"minecraft:facing_direction\" state will be north.",
|
|
"maximum": 360,
|
|
"minimum": 0,
|
|
"multipleOf": 90,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled_states"
|
|
],
|
|
"title": "Placement Direction",
|
|
"type": "object"
|
|
},
|
|
"2369685306": {
|
|
"properties": {
|
|
"category": {
|
|
"enum": [
|
|
"construction",
|
|
"nature",
|
|
"equipment",
|
|
"items",
|
|
"none"
|
|
],
|
|
"title": "CreativeItemCategory",
|
|
"type": "string"
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"is_hidden_in_commands": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"category"
|
|
],
|
|
"title": "Menu Category",
|
|
"type": "object"
|
|
},
|
|
"2735968029": {
|
|
"description": "Use this component to define tags, vanilla or custom. Valid tags are of the format \"namespace:tag_name\". The array of tags must be non-empty.",
|
|
"items": {
|
|
"pattern": "^(?:.)+:(?:.)+$",
|
|
"type": "string"
|
|
},
|
|
"title": "Tags",
|
|
"type": "array"
|
|
},
|
|
"2879220220": {
|
|
"description": "Specifies the language file key that maps to what text will be displayed when you hover over the block in your inventory and hotbar. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this component is omitted, the name of the block will be used as the display name.",
|
|
"maxLength": 256,
|
|
"title": "Display Name",
|
|
"type": "string"
|
|
},
|
|
"3142471136": {
|
|
"description": "Adds the \"minecraft:block_face\" and/or \"minecraft:vertical_half\" states and setter function to the block.",
|
|
"properties": {
|
|
"enabled_states": {
|
|
"description": "Which states to enable. Must specify at least one. Options: [\"minecraft:block_face\", \"minecraft:vertical_half\"].",
|
|
"items": {
|
|
"pattern": "^(minecraft:block_face|minecraft:vertical_half)$",
|
|
"type": "string"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 1,
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled_states"
|
|
],
|
|
"title": "Placement Position",
|
|
"type": "object"
|
|
},
|
|
"3463543465": {
|
|
"properties": {
|
|
"minecraft:placement_direction": {
|
|
"$ref": "#/definitions/2208326140",
|
|
"description": "Adds the \"minecraft:cardinal_direction\" and/or \"minecraft:facing_direction\" states and setter function to the block."
|
|
},
|
|
"minecraft:placement_position": {
|
|
"$ref": "#/definitions/3142471136",
|
|
"description": "Adds the \"minecraft:block_face\" and/or \"minecraft:vertical_half\" states and setter function to the block."
|
|
}
|
|
},
|
|
"title": "Traits",
|
|
"type": "object"
|
|
},
|
|
"3925154510": {
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/825755857"
|
|
}
|
|
]
|
|
},
|
|
"title": "States",
|
|
"type": "object"
|
|
},
|
|
"3993091038": {
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"menu_category": {
|
|
"$ref": "#/definitions/2369685306"
|
|
},
|
|
"states": {
|
|
"$ref": "#/definitions/3925154510"
|
|
},
|
|
"traits": {
|
|
"$ref": "#/definitions/3463543465"
|
|
}
|
|
},
|
|
"required": [
|
|
"identifier"
|
|
],
|
|
"title": "Description",
|
|
"type": "object"
|
|
},
|
|
"471923105": {
|
|
"properties": {
|
|
"minecraft:display_name": {
|
|
"$ref": "#/definitions/2879220220",
|
|
"description": "Specifies the language file key that maps to what text will be displayed when you hover over the block in your inventory and hotbar. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this component is omitted, the name of the block will be used as the display name."
|
|
},
|
|
"minecraft:tags": {
|
|
"$ref": "#/definitions/2735968029",
|
|
"description": "Use this component to define tags, vanilla or custom. Valid tags are of the format \"namespace:tag_name\". The array of tags must be non-empty."
|
|
}
|
|
},
|
|
"title": "Components",
|
|
"type": "object"
|
|
},
|
|
"6632766": {
|
|
"properties": {
|
|
"max": {
|
|
"type": "integer"
|
|
},
|
|
"min": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"max",
|
|
"min"
|
|
],
|
|
"title": "Range",
|
|
"type": "object"
|
|
},
|
|
"825755857": {
|
|
"properties": {
|
|
"values": {
|
|
"$ref": "#/definitions/6632766"
|
|
}
|
|
},
|
|
"required": [
|
|
"values"
|
|
],
|
|
"title": "Values",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"components": {
|
|
"$ref": "#/definitions/471923105"
|
|
},
|
|
"description": {
|
|
"$ref": "#/definitions/3993091038"
|
|
}
|
|
},
|
|
"required": [
|
|
"description"
|
|
],
|
|
"title": "BlockDefinitionDocument",
|
|
"type": "object",
|
|
"x-format-version": "1.21.110"
|
|
} |