Fixing features schemas

This commit is contained in:
DaanV2
2021-06-08 21:59:33 +02:00
parent ed24712b98
commit 26ff5ef420
5 changed files with 442 additions and 444 deletions

View File

@@ -157,7 +157,7 @@
"title": "Max Point Offset",
"type": "integer",
"description": "The highest possible value of random offset applied to the position of each distribution point. [0,10]",
"minimum": 1,
"minimum": 0,
"maximum": 10
},
"max_radius": {

View File

@@ -28,7 +28,6 @@
"width_modifier": {
"title": "Identifier",
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
"type": "string",
"$ref": "../../../../molang/number.json"
}
}

View File

@@ -3,7 +3,7 @@
"title": "Search Feature",
"description": "`minecraft:search_feature` sweeps a volume searching for a valid placement location for its referenced feature. The `search_volume` field specifies the axis-aligned bounding box that defines the boundaries of the search. The search sweeps along the axis defined by the `search_axis` field, layer by layer. For example, if `search_axis` = '-x', blocks with greater x values will be checked before blocks with lower x values. Each layer is searched from the bottom-left to the top-right before moving to the next layer along the axis. By default, only one valid position must be found, but this can be altered by specifying the `required_successes` field. If fewer than the required successes are found, no placement will occur.\nSucceeds if: The number of valid positions is equal to the value specified by `required_successes`.\nFails if: The number of valid positions is less than the value specified by `required_successes`.",
"additionalProperties": false,
"required": ["description"],
"required": ["description", "search_axis"],
"properties": {
"description": {
"title": "Description",
@@ -30,7 +30,7 @@
"description": "Axis-aligned bounding box that will be searched for valid placement positions. Expressed as offsets from the input position.",
"type": "object",
"additionalProperties": false,
"required": ["min", "max", "search_axis"],
"required": ["min", "max"],
"properties": {
"max": {
"title": "Max",
@@ -51,20 +51,20 @@
{ "title": "Min Y", "type": "integer" },
{ "title": "Min Z", "type": "integer" }
]
},
"search_axis": {
"title": "Search Axis",
"description": "Axis that the search will sweep along through the `search_volume`",
"type": "string",
"enum": ["-x", "+x", "-y", "+y", "-z", "+z"]
},
"required_successes": {
"title": "Required successes",
"description": "Number of valid positions the search must find in order to place the referenced feature",
"type": "integer",
"minimum": 1
}
}
},
"search_axis": {
"title": "Search Axis",
"description": "Axis that the search will sweep along through the `search_volume`",
"type": "string",
"enum": ["-x", "+x", "-y", "+y", "-z", "+z"]
},
"required_successes": {
"title": "Required successes",
"description": "Number of valid positions the search must find in order to place the referenced feature",
"type": "integer",
"minimum": 1
}
}
}

View File

@@ -3,7 +3,7 @@
"description": "Feature type 'minecraft:tree_feature' has not yet been documented.",
"type": "object",
"additionalProperties": false,
"required": ["description", "structure_name", "constraints"],
"required": ["description"],
"definitions": {
"branch_canopy": {
"title": "branch_canopy",
@@ -821,448 +821,448 @@
}
}
}
},
"trunk": {
"title": "trunk",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"trunk_height": {
"title": "trunk_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"height_modifier": {
"title": "height_modifier",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"can_be_submerged": {
"title": "can_be_submerged",
"description": "UNDOCUMENTATED",
}
},
"trunk": {
"title": "trunk",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"trunk_height": {
"title": "trunk_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"height_modifier": {
"title": "height_modifier",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"can_be_submerged": {
"title": "can_be_submerged",
"description": "UNDOCUMENTATED",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"max_depth": {
"title": "max_depth",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
}
}
},
{
"title": "can_be_submerged",
"description": "UNDOCUMENTATED",
"type": "boolean"
}
]
},
"trunk_block": {
"title": "trunk_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"trunk_decoration": {
"title": "trunk_decoration",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"decoration_chance": {
"title": "decoration_chance",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/1.14.0/chance_information.json"
},
"decoration_block": {
"title": "decoration_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"num_steps": {
"title": "num_steps",
"description": "UNDOCUMENTATED",
"type": "integer"
},
"step_direction": {
"title": "step_direction",
"description": "UNDOCUMENTATED",
"type": "string",
"enum": ["down", "up", "out", "away"]
}
}
}
}
},
"acacia_canopy": {
"title": "acacia_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_size": {
"title": "canopy_size",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"simplify_canopy": {
"title": "simplify_canopy",
"description": "UNDOCUMENTATED",
"type": "boolean"
}
}
},
"canopy": {
"title": "canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_offset": {
"title": "canopy_offset",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"min": {
"title": "min",
"description": "UNDOCUMENTATED",
"type": "integer"
},
"max": {
"title": "max",
"description": "UNDOCUMENTATED",
"type": "integer"
}
}
},
"min_width": {
"title": "min_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"canopy_slope": {
"title": "canopy_slope",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"rise": {
"title": "rise",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"run": {
"title": "run",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
}
}
},
"variation_chance": {
"title": "variation_chance",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "$ref": "../../../../general/1.14.0/chance_information.json" },
{
"type": "number",
"items": {
"title": "variation_chance",
"$ref": "../../../../general/1.14.0/chance_information.json"
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"max_depth": {
"title": "max_depth",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
}
}
]
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"canopy_decoration": {
"title": "canopy_decoration",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"decoration_chance": {
"title": "decoration_chance",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/1.14.0/chance_information.json"
},
"decoration_block": {
"title": "decoration_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"num_steps": {
"title": "num_steps",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"step_direction": {
"title": "step_direction",
"description": "UNDOCUMENTATED",
"type": "string",
"enum": ["down", "up", "out", "away"]
}
},
{
"title": "can_be_submerged",
"description": "UNDOCUMENTATED",
"type": "boolean"
}
]
},
"trunk_block": {
"title": "trunk_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"trunk_decoration": {
"title": "trunk_decoration",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"decoration_chance": {
"title": "decoration_chance",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/1.14.0/chance_information.json"
},
"decoration_block": {
"title": "decoration_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"num_steps": {
"title": "num_steps",
"description": "UNDOCUMENTATED",
"type": "integer"
},
"step_direction": {
"title": "step_direction",
"description": "UNDOCUMENTATED",
"type": "string",
"enum": ["down", "up", "out", "away"]
}
}
}
},
"fancy_canopy": {
"title": "fancy_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"height": {
"title": "height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"radius": {
"title": "radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"acacia_canopy": {
"title": "acacia_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_size": {
"title": "canopy_size",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"simplify_canopy": {
"title": "simplify_canopy",
"description": "UNDOCUMENTATED",
"type": "boolean"
}
}
},
"canopy": {
"title": "canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_offset": {
"title": "canopy_offset",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"min": {
"title": "min",
"description": "UNDOCUMENTATED",
"type": "integer"
},
"max": {
"title": "max",
"description": "UNDOCUMENTATED",
"type": "integer"
}
}
},
"min_width": {
"title": "min_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"canopy_slope": {
"title": "canopy_slope",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"rise": {
"title": "rise",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"run": {
"title": "run",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
}
}
},
"variation_chance": {
"title": "variation_chance",
"description": "UNDOCUMENTATED",
"oneOf": [
{ "$ref": "../../../../general/1.14.0/chance_information.json" },
{
"type": "number",
"items": {
"title": "variation_chance",
"$ref": "../../../../general/1.14.0/chance_information.json"
}
}
]
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"canopy_decoration": {
"title": "canopy_decoration",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"decoration_chance": {
"title": "decoration_chance",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/1.14.0/chance_information.json"
},
"decoration_block": {
"title": "decoration_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
},
"num_steps": {
"title": "num_steps",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"step_direction": {
"title": "step_direction",
"description": "UNDOCUMENTATED",
"type": "string",
"enum": ["down", "up", "out", "away"]
}
}
}
},
"mega_canopy": {
"title": "mega_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 0
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 1
},
"simplify_canopy": {
"title": "simplify_canopy",
"description": "UNDOCUMENTATED",
"type": "boolean"
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"fancy_canopy": {
"title": "fancy_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"height": {
"title": "height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"radius": {
"title": "radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"mega_pine_canopy": {
"title": "mega_pine_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"radius_step_modifier": {
"title": "radius_step_modifier",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 0.0
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"mega_canopy": {
"title": "mega_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 0
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 1
},
"simplify_canopy": {
"title": "simplify_canopy",
"description": "UNDOCUMENTATED",
"type": "boolean"
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"pine_canopy": {
"title": "pine_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"mega_pine_canopy": {
"title": "mega_pine_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"radius_step_modifier": {
"title": "radius_step_modifier",
"description": "UNDOCUMENTATED",
"type": "number",
"minimum": 0.0
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"roofed_canopy": {
"title": "roofed_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 3
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"outer_radius": {
"title": "outer_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"inner_radius": {
"title": "inner_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"pine_canopy": {
"title": "pine_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"base_radius": {
"title": "base_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"spruce_canopy": {
"title": "Spruce Canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"lower_offset": {
"title": "lower_offset",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"upper_offset": {
"title": "upper_offset",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"max_radius": {
"title": "max_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"roofed_canopy": {
"title": "roofed_canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 3
},
"core_width": {
"title": "core_width",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"outer_radius": {
"title": "outer_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"inner_radius": {
"title": "inner_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
},
"random_spread_canopy": {
"title": "Random Spread Canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"canopy_radius": {
"title": "canopy_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_placement_attempts": {
"title": "leaf_placement_attempts",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_blocks": {
"title": "leaf_blocks",
}
},
"spruce_canopy": {
"title": "Spruce Canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"lower_offset": {
"title": "lower_offset",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"upper_offset": {
"title": "upper_offset",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"max_radius": {
"title": "max_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
}
},
"random_spread_canopy": {
"title": "Random Spread Canopy",
"description": "UNDOCUMENTATED",
"type": "object",
"additionalProperties": false,
"properties": {
"canopy_height": {
"title": "canopy_height",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"canopy_radius": {
"title": "canopy_radius",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 0
},
"leaf_placement_attempts": {
"title": "leaf_placement_attempts",
"description": "UNDOCUMENTATED",
"type": "integer",
"minimum": 1
},
"leaf_blocks": {
"title": "leaf_blocks",
"description": "UNDOCUMENTATED",
"type": "array",
"additionalProperties": false,
"items": {
"title": "items",
"description": "UNDOCUMENTATED",
"type": "array",
"additionalProperties": false,
"items": {
"title": "items",
"description": "UNDOCUMENTATED",
"type": "array",
"additionalProperties": false,
"items": [{ "type": "integer" }, { "type": "number" }]
}
"items": [{ "type": "integer" }, { "type": "number" }]
}
}
}

View File

@@ -28,7 +28,6 @@
"width_modifier": {
"title": "Width Modifier",
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
"type": "string",
"$ref": "../../../../molang/number.json"
},
"replace_air_with": {