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,6 +51,8 @@
{ "title": "Min Y", "type": "integer" }, { "title": "Min Y", "type": "integer" },
{ "title": "Min Z", "type": "integer" } { "title": "Min Z", "type": "integer" }
] ]
}
}
}, },
"search_axis": { "search_axis": {
"title": "Search Axis", "title": "Search Axis",
@@ -65,6 +67,4 @@
"minimum": 1 "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,6 +821,7 @@
} }
} }
} }
}
}, },
"trunk": { "trunk": {
"title": "trunk", "title": "trunk",
@@ -1267,5 +1268,4 @@
} }
} }
} }
}
} }

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": {