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

View File

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

View File

@@ -3,7 +3,7 @@
"title": "Search Feature", "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`.", "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, "additionalProperties": false,
"required": ["description"], "required": ["description", "search_axis"],
"properties": { "properties": {
"description": { "description": {
"title": "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.", "description": "Axis-aligned bounding box that will be searched for valid placement positions. Expressed as offsets from the input position.",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["min", "max", "search_axis"], "required": ["min", "max"],
"properties": { "properties": {
"max": { "max": {
"title": "Max", "title": "Max",
@@ -51,20 +51,20 @@
{ "title": "Min Y", "type": "integer" }, { "title": "Min Y", "type": "integer" },
{ "title": "Min Z", "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.", "description": "Feature type 'minecraft:tree_feature' has not yet been documented.",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["description", "structure_name", "constraints"], "required": ["description"],
"definitions": { "definitions": {
"branch_canopy": { "branch_canopy": {
"title": "branch_canopy", "title": "branch_canopy",
@@ -821,448 +821,448 @@
} }
} }
} }
}, }
"trunk": { },
"title": "trunk", "trunk": {
"description": "UNDOCUMENTATED", "title": "trunk",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"trunk_height": { "properties": {
"title": "trunk_height", "trunk_height": {
"description": "UNDOCUMENTATED", "title": "trunk_height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"height_modifier": { },
"title": "height_modifier", "height_modifier": {
"description": "UNDOCUMENTATED", "title": "height_modifier",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"can_be_submerged": { },
"title": "can_be_submerged", "can_be_submerged": {
"description": "UNDOCUMENTATED", "title": "can_be_submerged",
"description": "UNDOCUMENTATED",
"oneOf": [ "oneOf": [
{ {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"max_depth": { "max_depth": {
"title": "max_depth", "title": "max_depth",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"type": "integer", "type": "integer",
"minimum": 1 "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"
} }
} }
] },
}, {
"leaf_block": { "title": "can_be_submerged",
"title": "leaf_block", "description": "UNDOCUMENTATED",
"description": "UNDOCUMENTATED", "type": "boolean"
"type": "string", }
"$ref": "../../../../general/block/identifier.json" ]
}, },
"canopy_decoration": { "trunk_block": {
"title": "canopy_decoration", "title": "trunk_block",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"type": "object", "type": "string",
"additionalProperties": false, "$ref": "../../../../general/block/identifier.json"
"properties": { },
"decoration_chance": { "trunk_decoration": {
"title": "decoration_chance", "title": "trunk_decoration",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"$ref": "../../../../general/1.14.0/chance_information.json" "type": "object",
}, "additionalProperties": false,
"decoration_block": { "properties": {
"title": "decoration_block", "decoration_chance": {
"description": "UNDOCUMENTATED", "title": "decoration_chance",
"type": "string", "description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json" "$ref": "../../../../general/1.14.0/chance_information.json"
}, },
"num_steps": { "decoration_block": {
"title": "num_steps", "title": "decoration_block",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"type": "integer", "type": "string",
"minimum": 0 "$ref": "../../../../general/block/identifier.json"
}, },
"step_direction": { "num_steps": {
"title": "step_direction", "title": "num_steps",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"type": "string", "type": "integer"
"enum": ["down", "up", "out", "away"] },
} "step_direction": {
"title": "step_direction",
"description": "UNDOCUMENTATED",
"type": "string",
"enum": ["down", "up", "out", "away"]
} }
} }
} }
}, }
"fancy_canopy": { },
"title": "fancy_canopy", "acacia_canopy": {
"description": "UNDOCUMENTATED", "title": "acacia_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"height": { "properties": {
"title": "height", "canopy_size": {
"description": "UNDOCUMENTATED", "title": "canopy_size",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "integer",
}, "minimum": 1
"radius": { },
"title": "radius", "leaf_block": {
"description": "UNDOCUMENTATED", "title": "leaf_block",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "string",
}, "$ref": "../../../../general/block/identifier.json"
"leaf_block": { },
"title": "leaf_block", "simplify_canopy": {
"description": "UNDOCUMENTATED", "title": "simplify_canopy",
"type": "string", "description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json" "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", "fancy_canopy": {
"description": "UNDOCUMENTATED", "title": "fancy_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"canopy_height": { "properties": {
"title": "canopy_height", "height": {
"description": "UNDOCUMENTATED", "title": "height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 1
"base_radius": { },
"title": "base_radius", "radius": {
"description": "UNDOCUMENTATED", "title": "radius",
"type": "number", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"core_width": { },
"title": "core_width", "leaf_block": {
"description": "UNDOCUMENTATED", "title": "leaf_block",
"type": "number", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "string",
}, "$ref": "../../../../general/block/identifier.json"
"simplify_canopy": {
"title": "simplify_canopy",
"description": "UNDOCUMENTATED",
"type": "boolean"
},
"leaf_block": {
"title": "leaf_block",
"description": "UNDOCUMENTATED",
"type": "string",
"$ref": "../../../../general/block/identifier.json"
}
} }
}, }
"mega_pine_canopy": { },
"title": "mega_pine_canopy", "mega_canopy": {
"description": "UNDOCUMENTATED", "title": "mega_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"canopy_height": { "properties": {
"title": "canopy_height", "canopy_height": {
"description": "UNDOCUMENTATED", "title": "canopy_height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"base_radius": { },
"title": "base_radius", "base_radius": {
"description": "UNDOCUMENTATED", "title": "base_radius",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "number",
}, "minimum": 0
"radius_step_modifier": { },
"title": "radius_step_modifier", "core_width": {
"description": "UNDOCUMENTATED", "title": "core_width",
"type": "number", "description": "UNDOCUMENTATED",
"minimum": 0.0 "type": "number",
}, "minimum": 1
"core_width": { },
"title": "core_width", "simplify_canopy": {
"description": "UNDOCUMENTATED", "title": "simplify_canopy",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "boolean"
}, },
"leaf_block": { "leaf_block": {
"title": "leaf_block", "title": "leaf_block",
"description": "UNDOCUMENTATED", "description": "UNDOCUMENTATED",
"type": "string", "type": "string",
"$ref": "../../../../general/block/identifier.json" "$ref": "../../../../general/block/identifier.json"
}
} }
}, }
"pine_canopy": { },
"title": "pine_canopy", "mega_pine_canopy": {
"description": "UNDOCUMENTATED", "title": "mega_pine_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"canopy_height": { "properties": {
"title": "canopy_height", "canopy_height": {
"description": "UNDOCUMENTATED", "title": "canopy_height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"base_radius": { },
"title": "base_radius", "base_radius": {
"description": "UNDOCUMENTATED", "title": "base_radius",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "integer",
}, "minimum": 0
"leaf_block": { },
"title": "leaf_block", "radius_step_modifier": {
"description": "UNDOCUMENTATED", "title": "radius_step_modifier",
"type": "string", "description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json" "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", "pine_canopy": {
"description": "UNDOCUMENTATED", "title": "pine_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"canopy_height": { "properties": {
"title": "canopy_height", "canopy_height": {
"description": "UNDOCUMENTATED", "title": "canopy_height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 3 "type": "integer",
}, "minimum": 0
"core_width": { },
"title": "core_width", "base_radius": {
"description": "UNDOCUMENTATED", "title": "base_radius",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "integer",
}, "minimum": 1
"outer_radius": { },
"title": "outer_radius", "leaf_block": {
"description": "UNDOCUMENTATED", "title": "leaf_block",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "string",
}, "$ref": "../../../../general/block/identifier.json"
"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"
}
} }
}, }
"spruce_canopy": { },
"title": "Spruce Canopy", "roofed_canopy": {
"description": "UNDOCUMENTATED", "title": "roofed_canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"lower_offset": { "properties": {
"title": "lower_offset", "canopy_height": {
"description": "UNDOCUMENTATED", "title": "canopy_height",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 3
"upper_offset": { },
"title": "upper_offset", "core_width": {
"description": "UNDOCUMENTATED", "title": "core_width",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 1
"max_radius": { },
"title": "max_radius", "outer_radius": {
"description": "UNDOCUMENTATED", "title": "outer_radius",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"leaf_block": { },
"title": "leaf_block", "inner_radius": {
"description": "UNDOCUMENTATED", "title": "inner_radius",
"type": "string", "description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json" "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", "spruce_canopy": {
"description": "UNDOCUMENTATED", "title": "Spruce Canopy",
"type": "object", "description": "UNDOCUMENTATED",
"additionalProperties": false, "type": "object",
"properties": { "additionalProperties": false,
"canopy_height": { "properties": {
"title": "canopy_height", "lower_offset": {
"description": "UNDOCUMENTATED", "title": "lower_offset",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"canopy_radius": { },
"title": "canopy_radius", "upper_offset": {
"description": "UNDOCUMENTATED", "title": "upper_offset",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 0 "type": "integer",
}, "minimum": 0
"leaf_placement_attempts": { },
"title": "leaf_placement_attempts", "max_radius": {
"description": "UNDOCUMENTATED", "title": "max_radius",
"type": "integer", "description": "UNDOCUMENTATED",
"minimum": 1 "type": "integer",
}, "minimum": 0
"leaf_blocks": { },
"title": "leaf_blocks", "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", "description": "UNDOCUMENTATED",
"type": "array", "type": "array",
"additionalProperties": false, "additionalProperties": false,
"items": { "items": [{ "type": "integer" }, { "type": "number" }]
"title": "items",
"description": "UNDOCUMENTATED",
"type": "array",
"additionalProperties": false,
"items": [{ "type": "integer" }, { "type": "number" }]
}
} }
} }
} }

View File

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