1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-21 20:46:28 +00:00
bedrock-samples/metadata/json_schemas/Template Pool v1.21.20.json
Mike Ammerlaan 1440438305 v1.21.30.3
2024-09-17 09:13:33 -07:00

118 lines
4.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "257927197",
"definitions": {
"1382973118": {
"title": "struct SharedTypes::v1_21_20::JigsawStructureTemplatePool::Contents",
"type": "object",
"properties": {
"description": {
"$ref": "#/definitions/1872243302"
},
"elements": {
"title": "sequence container",
"description": "List of Structure Template and processor list pairs.",
"type": "array",
"items": {
"$ref": "#/definitions/1755372388"
}
},
"fallback": {
"description": "Fallback template pool to use if no element in the pool can be placed successfully.",
"type": "string"
}
},
"required": [
"description",
"elements"
]
},
"1755372388": {
"title": "struct SharedTypes::v1_21_20::JigsawStructureTemplatePool::TemplatePoolElement",
"type": "object",
"properties": {
"element": {
"description": "A grouping of a Structure Template, the Processor List to use when placing the structure, and its weight that determines the likelihood of the element being chosen.",
"$ref": "#/definitions/2726507774"
},
"projection": {
"title": "enum SharedTypes::v1_21_20::JigsawStructureTemplatePool::Projection",
"description": "Specifies how structures should be placed relative to the terrain.",
"type": "string",
"enum": [
"rigid",
"terrain_matching"
]
},
"weight": {
"description": "The weighted probability of choosing the element from the pool. For example, a template pool containing 2 structures with weights of 1 and 3 will have a 25% and 75% chance of being chosen respectively.",
"type": "integer",
"minimum": 1.0,
"maximum": 200.0
}
},
"required": [
"element"
]
},
"1872243302": {
"title": "struct SharedTypes::v1_21_20::JigsawStructureTemplatePool::Description",
"type": "object",
"properties": {
"identifier": {
"description": "Identifier of the template pool. Used by Jigsaw Structures to assign processors to Structure Templates.",
"type": "string"
}
},
"required": [
"identifier"
]
},
"2726507774": {
"title": "struct SharedTypes::v1_21_20::JigsawStructureTemplatePool::SinglePoolElement",
"type": "object",
"properties": {
"element_type": {
"title": "enum SharedTypes::v1_21_20::JigsawStructureTemplatePool::ElementType",
"description": "The type of element. Currently, only minecraft:single_pool_element is supported.",
"type": "string",
"enum": [
"minecraft:single_pool_element"
]
},
"location": {
"description": "The path of the structure file. This path is relative to the behavior pack's structures folder.",
"type": "string"
},
"processors": {
"description": "The identifier of the processor list to use when placing the structure.",
"type": "string"
}
},
"required": [
"element_type",
"location",
"processors"
]
}
},
"title": "struct SharedTypes::v1_21_20::JigsawStructureTemplatePool::Document",
"type": "object",
"properties": {
"format_version": {
"type": "string"
},
"minecraft:template_pool": {
"description": "Used to pair block rules with Structure Templates and to randomly place Structure Templates using a weighted list.",
"$ref": "#/definitions/1382973118"
}
},
"required": [
"format_version",
"minecraft:template_pool"
],
"$metaProperties": {
"CEREAL_DOCUMENTATION_TAG": false,
"CEREAL_JSON_SCHEMA": "Template Pool v1.21.20"
}
}