121 lines
5.1 KiB
JSON
Vendored
121 lines
5.1 KiB
JSON
Vendored
{
|
|
"$id": "blockception.minecraft.behavior.volumes",
|
|
"examples": [{ "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "example:foo" }, "components": {} } }],
|
|
"allOf": [
|
|
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "#/definitions/A" } },
|
|
{ "properties": { "format_version": { "$ref": "#/definitions/C" } } }
|
|
],
|
|
"definitions": {
|
|
"B": {
|
|
"type": "string",
|
|
"title": "Entity Identifier 1.8.0",
|
|
"description": "The minecraft entity volume",
|
|
"examples": ["namespace:volume"],
|
|
"pattern": "^[0-9a-zA-Z:_\\.\\-]+$"
|
|
},
|
|
"A": {
|
|
"type": "object",
|
|
"title": "Spawn Rules 1.17.0",
|
|
"description": "TODO",
|
|
"additionalProperties": false,
|
|
"required": ["format_version", "minecraft:volume"],
|
|
"properties": {
|
|
"format_version": {
|
|
"const": "1.17.0",
|
|
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.17.0.",
|
|
"title": "TODO Title"
|
|
},
|
|
"minecraft:volume": {
|
|
"type": "object",
|
|
"title": "Spawn Rules",
|
|
"description": "TODO",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"type": "object",
|
|
"title": "Description",
|
|
"description": "The description contains a single `identifier` string",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"identifier": {
|
|
"title": "Identifier",
|
|
"description": "The unique identifier for this volume. It must be of the form `namespace:name', where namespace cannot be `minecraft`.",
|
|
"$ref": "#/definitions/B"
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"type": "object",
|
|
"title": "Components",
|
|
"description": "TODO",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"minecraft:bounds": {
|
|
"title": "Minecraft:bounds",
|
|
"description": "Component that defines a minimum and maximum block position for a bounding box and which world dimension the bounding box is in. Every volume must have a bounds component.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"dimension": {
|
|
"type": "string",
|
|
"description": "The name of the dimension the bounding box will exist in: one of `overworld', `nether` or `the end`.",
|
|
"title": "Dimension",
|
|
"enum": ["overworld", "nether", "the end"]
|
|
},
|
|
"max": {
|
|
"type": "array",
|
|
"description": "The maximum block position of the bounding box.",
|
|
"title": "Maximum",
|
|
"items": [
|
|
{ "title": "A", "type": "number" },
|
|
{ "title": "B", "type": "number" },
|
|
{ "title": "C", "type": "number" }
|
|
]
|
|
},
|
|
"min": {
|
|
"type": "array",
|
|
"description": "The minimum block position of the bounding box.",
|
|
"title": "Minimum",
|
|
"items": [
|
|
{ "title": "A", "type": "number" },
|
|
{ "title": "B", "type": "number" },
|
|
{ "title": "C", "type": "number" }
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"minecraft:fog": {
|
|
"title": "Minecraft:fog",
|
|
"description": "Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"fog_identifier": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.",
|
|
"title": "fog identifier"
|
|
},
|
|
"priority": {
|
|
"type": "integer",
|
|
"default": 2147483647,
|
|
"description": "The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.",
|
|
"title": "priority"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"C": {
|
|
"title": "Format Version",
|
|
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
|
|
"pattern": "^(1)\\.([0-9]+)\\.([0-9]+)$",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|