@@ -1,40 +0,0 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.features.1.13.0",
|
||||
"type": "object",
|
||||
"title": "Features 1.13.0",
|
||||
"description": "Features are decorations scattered throughout the world. Things such as trees, plants, flowers, springs, ore, and coral are all features. Basically, if it isn't the terrain or a mob, it's probably a feature!",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version"],
|
||||
"minProperties": 2,
|
||||
"maxProperties": 2,
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"const": "1.13.0",
|
||||
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.13.0. Current supported version is 1.13.0.",
|
||||
"title": "Format Version"
|
||||
},
|
||||
"minecraft:aggregate_feature": { "$ref": "./features/minecraft.aggregate_feature.json" },
|
||||
"minecraft:beards_and_shavers": { "$ref": "./features/minecraft.beards_and_shavers.json" },
|
||||
"minecraft:cave_carver_feature": { "$ref": "./features/minecraft.cave_carver_feature.json" },
|
||||
"minecraft:conditional_list": { "$ref": "./features/minecraft.conditional_list.json" },
|
||||
"minecraft:geode_feature": { "$ref": "./features/minecraft.geode_feature.json" },
|
||||
"minecraft:growing_plant_feature": { "$ref": "./features/minecraft.growing_plant_feature.json" },
|
||||
"minecraft:hell_cave_carver_feature": { "$ref": "./features/minecraft.hell_cave_carver_feature.json" },
|
||||
"minecraft:multiface_feature": { "$ref": "./features/minecraft.multiface_feature.json" },
|
||||
"minecraft:ore_feature": { "$ref": "./features/minecraft.ore_feature.json" },
|
||||
"minecraft:rect_layout": { "$ref": "./features/minecraft.rect_layout.json" },
|
||||
"minecraft:scan_surface": { "$ref": "./features/minecraft.scan_surface.json" },
|
||||
"minecraft:scatter_feature": { "$ref": "./features/minecraft.scatter_feature.json" },
|
||||
"minecraft:search_feature": { "$ref": "./features/minecraft.search_feature.json" },
|
||||
"minecraft:sequence_feature": { "$ref": "./features/minecraft.sequence_feature.json" },
|
||||
"minecraft:single_block_feature": { "$ref": "./features/minecraft.single_block_feature.json" },
|
||||
"minecraft:snap_to_surface_feature": { "$ref": "./features/minecraft.snap_to_surface_feature.json" },
|
||||
"minecraft:structure_template_feature": { "$ref": "./features/minecraft.structure_template_feature.json" },
|
||||
"minecraft:tree_feature": { "$ref": "./features/minecraft.tree_feature.json" },
|
||||
"minecraft:underwater_cave_carver_feature": {
|
||||
"$ref": "./features/minecraft.underwater_cave_carver_feature.json"
|
||||
},
|
||||
"minecraft:vegetation_patch_feature": { "$ref": "./features/minecraft.vegetation_patch_feature.json" },
|
||||
"minecraft:weighted_random_feature": { "$ref": "./features/minecraft.weighted_random_feature.json" }
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"title": "Aggregate Feature",
|
||||
"description": "'minecraft:aggregate_feature` places a collection of features in an arbitary order. All features in the collection use the same input position. Features should not depend on each other, as there is no guarantee on the order the features will be placed.\n Succeeds if: At lease one feature is placed successfully.\n Fails if: All features fail to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": "Collection of features to be placed one by one. No guarantee of order. All features use the same input position.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"early_out": {
|
||||
"type": "string",
|
||||
"title": "Early Out",
|
||||
"description": "LIKELY TO BE CHANGED: Do not continue placing features once either the first success or first failure has occurred.",
|
||||
"enum": ["none", "first_failure", "first_success"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
{
|
||||
"title": "Beards And Shavers",
|
||||
"description": "`minecraft:beards_and_shavers` will build a `beard` or `shave` out space so as to provide a clear space for a feature to place.\nSucceeds if: a beard/shave is made (this should always happen).\nFails if: will always return placement pos, but interior feature placement not guaranteed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_feature", "bounding_box_max", "bounding_box_min", "y_delta", "surface_block_type", "subsurface_block_type"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"bounding_box_min": {
|
||||
"title": "Bounding Box Min",
|
||||
"description": "Dimensions of the Bounding Box.",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "type": "number", "title": "X" },
|
||||
{ "type": "number", "title": "Y" },
|
||||
{ "type": "number", "title": "Z" }
|
||||
]
|
||||
},
|
||||
"bounding_box_max": {
|
||||
"title": "Bounding Box Max",
|
||||
"description": "Dimensions of the Bounding Box.",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "type": "number", "title": "X" },
|
||||
{ "type": "number", "title": "Y" },
|
||||
{ "type": "number", "title": "Z" }
|
||||
]
|
||||
},
|
||||
"y_delta": {
|
||||
"title": "Y Delta",
|
||||
"description": "Y Delta for BAS.",
|
||||
"type": "number"
|
||||
},
|
||||
"surface_block_type": {
|
||||
"title": "Surface Block Type",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"subsurface_block_type": {
|
||||
"title": "Subsurface Block Type",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"beard_raggedness_min": {
|
||||
"title": "Beard Raggedness Min",
|
||||
"description": "Y Delta for BAS.",
|
||||
"type": "number"
|
||||
},
|
||||
"beard_raggedness_max": {
|
||||
"title": "Beard Raggedness Max",
|
||||
"description": "Y Delta for BAS.",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Cave Carver Feature",
|
||||
"description": "`minecraft:cave_carver_feature` carves a cave through the world in the current chunk, and in every chunk around the current chunk in an 8 radial pattern. This feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Fill with",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Width modifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../../molang/number.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Conditional List",
|
||||
"description": "`minecraft:conditional_list` Places the first suitable feature within a collection.\nThese conditional features will be evaluated in order.\nSucceeds if: A condition is successfully resolved.\nFails if: No condition is successfully resolved.\nExample use: assigning a feature to an expression",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "conditional_features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"conditional_features": {
|
||||
"title": "Conditional Features",
|
||||
"description": "Array of Features, and their associated Conditions, for attempted placement. These features will be evaluated as ordered.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Conditional Feature",
|
||||
"type": "object",
|
||||
"description": "A Feature, and their associated Conditions, for attempted placement. These features will be evaluated as ordered.",
|
||||
"additionalProperties": false,
|
||||
"required": ["places_feature", "condition"],
|
||||
"properties": {
|
||||
"places_feature": {
|
||||
"title": "Places feature",
|
||||
"description": "Feature to be placed.",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"condition": {
|
||||
"title": "Condition",
|
||||
"description": "Condition for placing associated Feature.",
|
||||
"$ref": "../../../../molang/string.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"early_out_scheme": {
|
||||
"title": "Early out scheme",
|
||||
"description": "Denote whether placement should end on first successful placement or first passed condition.",
|
||||
"type": "string",
|
||||
"enum": ["condition_success", "placement_success"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"title": "Hell Cave Carver Feature",
|
||||
"description": "`minecraft:hell_cave_carver_feature` carves a cave through the Nether in the current chunk, and in every chunk around the current chunk in an 8 radial pattern.This feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Identifier",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Identifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../../molang/number.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Rect Layout",
|
||||
"description": "`minecraft:rect_layout` places a vein of blocks to simulate ore deposits. Despite the name, any block can be placed by this feature. During placement, existing world blocks are checked to see if they can be replaced by the new ore block based on the list provided in the `may_replace` field of a `replace_rules` entry. If no `may_replace` field is specified in a `replace_rule` entry, the ore block can replace any existing block.\nSucceeds if: At least one ore block is successfully placed.\nFails if: All ore block placements fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "feature_areas"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ratio_of_empty_space": {
|
||||
"title": "Ratio Of Empty Space",
|
||||
"description": "Ratio of a Chunk to be filled with empty space rather than features.",
|
||||
"type": "number"
|
||||
},
|
||||
"feature_areas": {
|
||||
"title": "Feature Areas",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"minItems": 1,
|
||||
"maxItems": 4294967295,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"title": "Feature Area",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"feature": {
|
||||
"title": "Feature",
|
||||
"description": "Feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"area_dimensions": {
|
||||
"title": "Area Dimensions",
|
||||
"description": "Dimensions (size) of the associated Feature.",
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "title": "Width", "type": "integer", "minimum": 0 },
|
||||
{ "title": "Length", "type": "integer", "minimum": 0 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Rect Layout",
|
||||
"description": "`minecraft:scan_surface` scans the surface of a Chunk, calling place() on the surface of each block column.\nSucceeds if: A Feature was successfully placed during the scan.\nFails if: No Feature was placed during the course of the scan.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "scan_surface_feature"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scan_surface_feature": {
|
||||
"title": "Scan Surface Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,41 +0,0 @@
|
||||
{
|
||||
"title": "Underwater Cave Carver Feature",
|
||||
"description": "'minecraft:underwater_cave_carver_feature' carves a cave through the world in the current chunk, and in every chunk around the current chunk in an 8 radial pattern.This feature will specifically target creating caves only below sea level.\nThis feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Fill with",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Width Modifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../../molang/number.json"
|
||||
},
|
||||
"replace_air_with": {
|
||||
"title": "Replace air with",
|
||||
"description": "Reference to the block to replace air blocks with.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,103 +0,0 @@
|
||||
{
|
||||
"title": "Vegetation Patch Feature",
|
||||
"description": "Feature type `minecraft:vegetation_patch_feature` has not yet been documented.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"replaceable_blocks": {
|
||||
"title": "Replaceable Blocks",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Replace block",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"ground_block": {
|
||||
"title": "Ground Block",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"vegetation_feature": {
|
||||
"title": "Vegetation Feature",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"surface": {
|
||||
"title": "Surface",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "string"
|
||||
},
|
||||
"depth": {
|
||||
"title": "Depth",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"extra_deep_block_chance": {
|
||||
"title": "Extra Deep Block Chance",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"vertical_range": {
|
||||
"title": "Vertical Range",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"vegetation_chance": {
|
||||
"title": "Vegatation Chance",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"horizontal_radius": {
|
||||
"title": "Horizontal Radius",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"extra_edge_column_chance": {
|
||||
"title": "Extra Egde Column Chance",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"waterlogged": {
|
||||
"title": "Waterlogged",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
# Cave carvers
|
||||
|
||||
`"width_modifier"` may also be a float/int. This will be true for the other 2 cave carvers, too.
|
||||
@@ -1,17 +1,33 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.features",
|
||||
"examples": [
|
||||
{
|
||||
"format_version": "1.20.41",
|
||||
"minecraft:ore_feature": {
|
||||
"description": { "identifier": "example:foo" },
|
||||
"features": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"allOf": [
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.13.0" } } }, "then": { "$ref": "./1.13.0/features.json" } },
|
||||
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
|
||||
]
|
||||
"type": "object",
|
||||
"title": "Features",
|
||||
"description": "Features are decorations scattered throughout the world. Things such as trees, plants, flowers, springs, ore, and coral are all features. Basically, if it isn't the terrain or a mob, it's probably a feature!",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version"],
|
||||
"minProperties": 2,
|
||||
"maxProperties": 2,
|
||||
"properties": {
|
||||
"format_version": { "$ref": "../../general/format_version.json" },
|
||||
"minecraft:aggregate_feature": { "$ref": "./features/minecraft.aggregate_feature.json" },
|
||||
"minecraft:cave_carver_feature": { "$ref": "./features/minecraft.cave_carver_feature.json" },
|
||||
"minecraft:fossil_feature": { "$ref": "./features/minecraft.fossil_feature.json" },
|
||||
"minecraft:geode_feature": { "$ref": "./features/minecraft.geode_feature.json" },
|
||||
"minecraft:growing_plant_feature": { "$ref": "./features/minecraft.growing_plant_feature.json" },
|
||||
"minecraft:multiface_feature": { "$ref": "./features/minecraft.multiface_feature.json" },
|
||||
"minecraft:nether_cave_carver_feature": { "$ref": "./features/minecraft.nether_cave_carver_feature.json" },
|
||||
"minecraft:ore_feature": { "$ref": "./features/minecraft.ore_feature.json" },
|
||||
"minecraft:partially_exposed_blob_feature": { "$ref": "./features/minecraft.partially_exposed_blob_feature.json" },
|
||||
"minecraft:scatter_feature": { "$ref": "./features/minecraft.scatter_feature.json" },
|
||||
"minecraft:search_feature": { "$ref": "./features/minecraft.search_feature.json" },
|
||||
"minecraft:sequence_feature": { "$ref": "./features/minecraft.sequence_feature.json" },
|
||||
"minecraft:single_block_feature": { "$ref": "./features/minecraft.single_block_feature.json" },
|
||||
"minecraft:snap_to_surface_feature": { "$ref": "./features/minecraft.snap_to_surface_feature.json" },
|
||||
"minecraft:structure_template_feature": { "$ref": "./features/minecraft.structure_template_feature.json" },
|
||||
"minecraft:surface_relative_threshold_feature": { "$ref": "./features/minecraft.surface_relative_threshold_feature.json" },
|
||||
"minecraft:tree_feature": { "$ref": "./features/minecraft.tree_feature.json" },
|
||||
"minecraft:underwater_cave_carver_feature": { "$ref": "./features/minecraft.underwater_cave_carver_feature.json" },
|
||||
"minecraft:vegetation_patch_feature": { "$ref": "./features/minecraft.vegetation_patch_feature.json" },
|
||||
"minecraft:weighted_random_feature": { "$ref": "./features/minecraft.weighted_random_feature.json" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"title": "Aggregate Feature",
|
||||
"description": "'minecraft:aggregate_feature` places a collection of features in an arbitary order. All features in the collection use the same input position. Features should not depend on each other, as there is no guarantee on the order the features will be placed.\n Succeeds if: At lease one feature is placed successfully.\n Fails if: All features fail to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"description",
|
||||
"features"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": "Collection of features to be placed one by one. No guarantee of order. All features use the same input position.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "Feature identifer",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"early_out": {
|
||||
"type": "string",
|
||||
"title": "Early Out",
|
||||
"description": "Do not continue placing features once either the first success or first failure has occurred.",
|
||||
"enum": [
|
||||
"none",
|
||||
"first_failure",
|
||||
"first_success"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Cave Carver Feature",
|
||||
"description": "`minecraft:cave_carver_feature` carves a cave through the world in the current chunk, and in every chunk around the current chunk in an 8 radial pattern. This feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Fill With",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Width Modifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../molang/number.json"
|
||||
},
|
||||
"skip_carve_chance": {
|
||||
"title": "Skip Carve Chance",
|
||||
"description": "The chance to skip doing the carve (1 / value).",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"height_limit": {
|
||||
"title": "Height Limit",
|
||||
"description": "The height limit where we attempt to carve",
|
||||
"type": "integer"
|
||||
},
|
||||
"y_scale": {
|
||||
"type": "array",
|
||||
"title": "Y Scale",
|
||||
"description": "The scaling in y",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"horizontal_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Horizontal Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"vertical_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Vertical Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"floor_level": {
|
||||
"type": "array",
|
||||
"title": "Floor Level",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Fossil Feature",
|
||||
"description": "'minecraft:fossil_feature' generates a skeletal structure composed of bone blocks and parametric ore blocks.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"ore_block": {
|
||||
"title": "Ore Block",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"max_empty_corners": {
|
||||
"title": "Max Empty Corners",
|
||||
"description": "UNDOCUMENTED",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,220 +1,208 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Geode Feature",
|
||||
"description": "`minecraft:geode_feature` generates a rock formation to simulate a geode. Each layer of, and block within, the geode can be replaced.\nSucceeds if: At least one block within the geode is placed.\nFails if: All blocks within the geode fail to be placed.",
|
||||
"required": [
|
||||
"description",
|
||||
"max_radius",
|
||||
"filler",
|
||||
"inner_layer",
|
||||
"alternate_inner_layer",
|
||||
"use_alternate_layer0_chance",
|
||||
"middle_layer",
|
||||
"outer_layer",
|
||||
"placements_require_layer0_alternate",
|
||||
"use_potential_placements_chance",
|
||||
"min_distribution_points",
|
||||
"max_distribution_points",
|
||||
"min_outer_wall_distance",
|
||||
"max_outer_wall_distance",
|
||||
"min_point_offset",
|
||||
"max_point_offset",
|
||||
"noise_multiplier",
|
||||
"invalid_blocks_threshold",
|
||||
"crack_point_offset",
|
||||
"generate_crack_chance",
|
||||
"base_crack_size"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"examples": [
|
||||
{
|
||||
"description": {
|
||||
"identifier": "geode_features:geode_feature"
|
||||
},
|
||||
|
||||
"max_radius": 80,
|
||||
|
||||
"filler": "minecraft:air",
|
||||
|
||||
"inner_layer": "minecraft:stone",
|
||||
"alternate_inner_layer": "minecraft:cobblestone",
|
||||
"use_alternate_layer0_chance": 0.5,
|
||||
|
||||
"middle_layer": "minecraft:planks",
|
||||
|
||||
"outer_layer": "minecraft:obsidian",
|
||||
|
||||
"inner_placements": ["mincraft:glass"],
|
||||
"placements_require_layer0_alternate": true,
|
||||
"use_potential_placements_chance": 0.125,
|
||||
|
||||
"min_distribution_points": 3,
|
||||
"max_distribution_points": 3,
|
||||
"min_outer_wall_distance": 3,
|
||||
"max_outer_wall_distance": 3,
|
||||
"min_point_offset": 0,
|
||||
"max_point_offset": 0,
|
||||
"noise_multiplier": 0.025,
|
||||
"invalid_blocks_threshold": 10000,
|
||||
|
||||
"crack_point_offset": 0,
|
||||
"generate_crack_chance": 0,
|
||||
"base_crack_size": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"filler": {
|
||||
"title": "Filler",
|
||||
"type": "string",
|
||||
"description": "The block to fill the inside of the geode.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"inner_layer": {
|
||||
"title": "Inner layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the inside layer of the geode shell.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"alternate_inner_layer": {
|
||||
"title": "Alternate inner layer",
|
||||
"type": "string",
|
||||
"description": "The block that has a chance of generating instead of inner_layer.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"middle_layer": {
|
||||
"title": "Middle layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the middle layer of the geode shell.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"outer_layer": {
|
||||
"title": "Outer layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the outer shell of the geode.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"inner_placements": {
|
||||
"title": "Inner placements",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Block reference",
|
||||
"description": "A block that may be replaced during placement.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"min_outer_wall_distance": {
|
||||
"title": "Minimum Outer Wall Distance",
|
||||
"type": "integer",
|
||||
"description": "The minimum distance each distribution point must be from the outer wall. [0,10]",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_outer_wall_distance": {
|
||||
"title": "Maximum Outer Wall Distance",
|
||||
"type": "integer",
|
||||
"description": "The maximum distance each distribution point can be from the outer wall. [0,20]",
|
||||
"minimum": 1,
|
||||
"maximum": 20
|
||||
},
|
||||
"min_distribution_points": {
|
||||
"title": "Minimum Distribution Points",
|
||||
"type": "integer",
|
||||
"description": "The minimum number of points inside the distance field that can get generated. The distance field is the area consisting of all points with a minimum distance to all destribution points. [0,10]",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_distribution_points": {
|
||||
"title": "Maximum Distribution Points",
|
||||
"type": "integer",
|
||||
"description": "The maximum number of points inside the distance field that can get generated. The distance field is the area consisting of all points with a minimum distance to all destribution points. [0,20]",
|
||||
"minimum": 1,
|
||||
"maximum": 20
|
||||
},
|
||||
"min_point_offset": {
|
||||
"title": "Minimum Point Offset",
|
||||
"type": "integer",
|
||||
"description": "The lowest possible value of random offset applied to the position of each distribution point. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_point_offset": {
|
||||
"title": "Maximum Point Offset",
|
||||
"type": "integer",
|
||||
"description": "The highest possible value of random offset applied to the position of each distribution point. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_radius": {
|
||||
"title": "Maximum Radius",
|
||||
"type": "integer",
|
||||
"description": "The maximum possible radius of the geode generated."
|
||||
},
|
||||
"crack_point_offset": {
|
||||
"title": "Crack Point Offset",
|
||||
"type": "integer",
|
||||
"description": "An offset applied to each distribution point that forms the geode crack opening. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"generate_crack_chance": {
|
||||
"title": "Generate Crack Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood of a geode generating with a crack in its shell. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"base_crack_size": {
|
||||
"title": "Base Crack Size",
|
||||
"type": "number",
|
||||
"description": "How large the crack opening of the geode should be when generated. [0,5]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 5.0
|
||||
},
|
||||
"noise_multiplier": {
|
||||
"title": "Noise Multiplier",
|
||||
"type": "number",
|
||||
"description": "A multiplier applied to the noise that is applied to the distribution points within the geode. Higher = more noisy."
|
||||
},
|
||||
"use_potential_placements_chance": {
|
||||
"title": "Use Potential Placements Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood that a special block will be placed on the inside of the geode. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"use_alternate_layer0_chance": {
|
||||
"title": "Use Alternate Layer0 Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood that a block in the innermost layer of the geode will be replaced with an alternate option. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"placements_require_layer0_alternate": {
|
||||
"title": "Placements Require Layer0 Alternate",
|
||||
"type": "boolean",
|
||||
"description": " If true, the potential placement block will only be placed on the alternate layer0 blocks that get placed. Potential placement blocks are blocks that depend on the existance of another block to be placed. The latter are the layer0 alternate blocks."
|
||||
},
|
||||
"invalid_blocks_threshold": {
|
||||
"title": "Invalid Blocks Threshold",
|
||||
"type": "integer",
|
||||
"description": "The threshold of invalid blocks for a geode to have a distribution point in before it aborts generation entirely."
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Geode Feature",
|
||||
"description": "`minecraft:geode_feature` generates a rock formation to simulate a geode. Each layer of, and block within, the geode can be replaced.\nSucceeds if: At least one block within the geode is placed.\nFails if: All blocks within the geode fail to be placed.",
|
||||
"required": [
|
||||
"description",
|
||||
"max_radius",
|
||||
"filler",
|
||||
"inner_layer",
|
||||
"alternate_inner_layer",
|
||||
"use_alternate_layer0_chance",
|
||||
"middle_layer",
|
||||
"outer_layer",
|
||||
"placements_require_layer0_alternate",
|
||||
"use_potential_placements_chance",
|
||||
"min_distribution_points",
|
||||
"max_distribution_points",
|
||||
"min_outer_wall_distance",
|
||||
"max_outer_wall_distance",
|
||||
"min_point_offset",
|
||||
"max_point_offset",
|
||||
"noise_multiplier",
|
||||
"invalid_blocks_threshold",
|
||||
"crack_point_offset",
|
||||
"generate_crack_chance",
|
||||
"base_crack_size"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"examples": [
|
||||
{
|
||||
"description": {
|
||||
"identifier": "geode_features:geode_feature"
|
||||
},
|
||||
|
||||
"max_radius": 80,
|
||||
|
||||
"filler": "minecraft:air",
|
||||
|
||||
"inner_layer": "minecraft:stone",
|
||||
"alternate_inner_layer": "minecraft:cobblestone",
|
||||
"use_alternate_layer0_chance": 0.5,
|
||||
|
||||
"middle_layer": "minecraft:planks",
|
||||
|
||||
"outer_layer": "minecraft:obsidian",
|
||||
|
||||
"inner_placements": ["mincraft:glass"],
|
||||
"placements_require_layer0_alternate": true,
|
||||
"use_potential_placements_chance": 0.125,
|
||||
|
||||
"min_distribution_points": 3,
|
||||
"max_distribution_points": 3,
|
||||
"min_outer_wall_distance": 3,
|
||||
"max_outer_wall_distance": 3,
|
||||
"min_point_offset": 0,
|
||||
"max_point_offset": 0,
|
||||
"noise_multiplier": 0.025,
|
||||
"invalid_blocks_threshold": 10000,
|
||||
|
||||
"crack_point_offset": 0,
|
||||
"generate_crack_chance": 0,
|
||||
"base_crack_size": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"filler": {
|
||||
"title": "Filler",
|
||||
"type": "string",
|
||||
"description": "The block to fill the inside of the geode.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"inner_layer": {
|
||||
"title": "Inner Layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the inside layer of the geode shell.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"alternate_inner_layer": {
|
||||
"title": "Alternate Inner Layer",
|
||||
"type": "string",
|
||||
"description": "The block that has a chance of generating instead of inner_layer.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"middle_layer": {
|
||||
"title": "Middle Layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the middle layer of the geode shell.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"outer_layer": {
|
||||
"title": "Outer Layer",
|
||||
"type": "string",
|
||||
"description": "The block that forms the outer shell of the geode.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"inner_placements": {
|
||||
"title": "Inner Placements",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Block Reference",
|
||||
"description": "A block that may be replaced during placement.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"min_outer_wall_distance": {
|
||||
"title": "Minimum Outer Wall Distance",
|
||||
"type": "integer",
|
||||
"description": "The minimum distance each distribution point must be from the outer wall. [0,10]",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_outer_wall_distance": {
|
||||
"title": "Maximum Outer Wall Distance",
|
||||
"type": "integer",
|
||||
"description": "The maximum distance each distribution point can be from the outer wall. [0,20]",
|
||||
"minimum": 1,
|
||||
"maximum": 20
|
||||
},
|
||||
"min_distribution_points": {
|
||||
"title": "Minimum Distribution Points",
|
||||
"type": "integer",
|
||||
"description": "The minimum number of points inside the distance field that can get generated. The distance field is the area consisting of all points with a minimum distance to all destribution points. [0,10]",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_distribution_points": {
|
||||
"title": "Maximum Distribution Points",
|
||||
"type": "integer",
|
||||
"description": "The maximum number of points inside the distance field that can get generated. The distance field is the area consisting of all points with a minimum distance to all destribution points. [0,20]",
|
||||
"minimum": 1,
|
||||
"maximum": 20
|
||||
},
|
||||
"min_point_offset": {
|
||||
"title": "Minimum Point Offset",
|
||||
"type": "integer",
|
||||
"description": "The lowest possible value of random offset applied to the position of each distribution point. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_point_offset": {
|
||||
"title": "Maximum Point Offset",
|
||||
"type": "integer",
|
||||
"description": "The highest possible value of random offset applied to the position of each distribution point. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_radius": {
|
||||
"title": "Maximum Radius",
|
||||
"type": "integer",
|
||||
"description": "The maximum possible radius of the geode generated."
|
||||
},
|
||||
"crack_point_offset": {
|
||||
"title": "Crack Point Offset",
|
||||
"type": "integer",
|
||||
"description": "An offset applied to each distribution point that forms the geode crack opening. [0,10]",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"generate_crack_chance": {
|
||||
"title": "Generate Crack Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood of a geode generating with a crack in its shell. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"base_crack_size": {
|
||||
"title": "Base Crack Size",
|
||||
"type": "number",
|
||||
"description": "How large the crack opening of the geode should be when generated. [0,5]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 5.0
|
||||
},
|
||||
"noise_multiplier": {
|
||||
"title": "Noise Multiplier",
|
||||
"type": "number",
|
||||
"description": "A multiplier applied to the noise that is applied to the distribution points within the geode. Higher = more noisy."
|
||||
},
|
||||
"use_potential_placements_chance": {
|
||||
"title": "Use Potential Placements Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood that a special block will be placed on the inside of the geode. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"use_alternate_layer0_chance": {
|
||||
"title": "Use Alternate Layer0 Chance",
|
||||
"type": "number",
|
||||
"description": "The likelihood that a block in the innermost layer of the geode will be replaced with an alternate option. [0,1]",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"placements_require_layer0_alternate": {
|
||||
"title": "Placements Require Layer0 Alternate",
|
||||
"type": "boolean",
|
||||
"description": " If true, the potential placement block will only be placed on the alternate layer0 blocks that get placed. Potential placement blocks are blocks that depend on the existance of another block to be placed. The latter are the layer0 alternate blocks."
|
||||
},
|
||||
"invalid_blocks_threshold": {
|
||||
"title": "Invalid Blocks Threshold",
|
||||
"type": "integer",
|
||||
"description": "The threshold of invalid blocks for a geode to have a distribution point in before it aborts generation entirely."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,134 +1,120 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Growing Plant Feature",
|
||||
"description": "`minecraft:growing_plant_feature` places a growing plant in the world. A growing plant is a column that is anchored either to the ceiling or the floor, based on its growth direction.\nThe growing plant has a body and a head, where the head is the tip of the plant, and the body consists of the remainder blocks.\nThis feature can be used to define growing plants with variable body and head blocks, e.g. Cave Vines.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "height_distribution", "growth_direction", "body_blocks", "head_blocks"],
|
||||
"definitions": {
|
||||
"range": {
|
||||
"title": "Range",
|
||||
"description": "A range.",
|
||||
"type": "object",
|
||||
"required": ["range_min", "range_max"],
|
||||
"examples": [{ "range_min": 8, "range_max": 9 }],
|
||||
"properties": {
|
||||
"range_max": {
|
||||
"title": "Range Max",
|
||||
"type": "integer",
|
||||
"description": "The maximum plant height."
|
||||
},
|
||||
"range_min": {
|
||||
"title": "Range Min",
|
||||
"type": "integer",
|
||||
"description": "The minimum plant height."
|
||||
}
|
||||
}
|
||||
},
|
||||
"rangeOrInt": {
|
||||
"oneOf": [
|
||||
{ "type": "integer", "minimum": 0 },
|
||||
{ "type": "object", "$ref": "#/definitions/range" }
|
||||
]
|
||||
},
|
||||
"blocks_array": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the plant.",
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{
|
||||
"title": "Plant Body Block",
|
||||
"description": "Plant body block.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Weight",
|
||||
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
|
||||
"minimum": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"age": {
|
||||
"title": "Age",
|
||||
"description": "Age of the head of the plant.",
|
||||
"$ref": "#/definitions/rangeOrInt"
|
||||
},
|
||||
"height_distribution": {
|
||||
"title": "Height distribution",
|
||||
"description": "Collection of weighted heights that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"examples": [
|
||||
[
|
||||
[{ "range_min": 8, "range_max": 9 }, 1],
|
||||
[6, 1]
|
||||
]
|
||||
],
|
||||
"items": {
|
||||
"title": "Height distribution",
|
||||
"description": "Collection of weighted heights that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{
|
||||
"title": "Plant Height",
|
||||
"description": "Plant height.",
|
||||
"$ref": "#/definitions/rangeOrInt"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Weight",
|
||||
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
|
||||
"minimum": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"growth_direction": {
|
||||
"title": "Growth Direction",
|
||||
"description": "Direction that the plant grows towards. Valid values: UP and DOWN",
|
||||
"type": "string",
|
||||
"enum": ["UP", "DOWN", "up", "down"]
|
||||
},
|
||||
"body_blocks": {
|
||||
"title": "Body Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the body of the plant.",
|
||||
"$ref": "#/definitions/blocks_array"
|
||||
},
|
||||
"head_blocks": {
|
||||
"title": "Head Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the body of the plant.",
|
||||
"$ref": "#/definitions/blocks_array"
|
||||
},
|
||||
"allow_water": {
|
||||
"title": "Allow Water",
|
||||
"description": "Plant blocks can be placed in water.",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Growing Plant Feature",
|
||||
"description": "`minecraft:growing_plant_feature` places a growing plant in the world. A growing plant is a column that is anchored either to the ceiling or the floor, based on its growth direction.\nThe growing plant has a body and a head, where the head is the tip of the plant, and the body consists of the remainder blocks.\nThis feature can be used to define growing plants with variable body and head blocks, e.g. Cave Vines.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "height_distribution", "growth_direction", "body_blocks", "head_blocks"],
|
||||
"definitions": {
|
||||
"range": {
|
||||
"title": "Range",
|
||||
"description": "A range.",
|
||||
"type": "object",
|
||||
"required": ["range_min", "range_max"],
|
||||
"examples": [{ "range_min": 8, "range_max": 9 }],
|
||||
"properties": {
|
||||
"range_max": {
|
||||
"title": "Range Max",
|
||||
"type": "integer",
|
||||
"description": "The maximum plant height."
|
||||
},
|
||||
"range_min": {
|
||||
"title": "Range Min",
|
||||
"type": "integer",
|
||||
"description": "The minimum plant height."
|
||||
}
|
||||
}
|
||||
},
|
||||
"rangeOrInt": {
|
||||
"oneOf": [
|
||||
{ "type": "integer", "minimum": 0 },
|
||||
{ "type": "object", "$ref": "#/definitions/range" }
|
||||
]
|
||||
},
|
||||
"blocks_array": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the plant.",
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{
|
||||
"title": "Plant Body Block",
|
||||
"description": "Plant body block.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
{
|
||||
"title": "Age",
|
||||
"$ref": "../../entities/format/types/range_number_type.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"age": {
|
||||
"title": "Age",
|
||||
"description": "Age of the head of the plant.",
|
||||
"$ref": "#/definitions/rangeOrInt"
|
||||
},
|
||||
"height_distribution": {
|
||||
"title": "Height Distribution",
|
||||
"description": "Collection of weighted heights that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"examples": [
|
||||
[
|
||||
[{ "range_min": 8, "range_max": 9 }, 1],
|
||||
[6, 1]
|
||||
]
|
||||
],
|
||||
"items": {
|
||||
"title": "Items",
|
||||
"description": "Collection of weighted heights that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{
|
||||
"title": "Plant Height",
|
||||
"description": "Plant height.",
|
||||
"$ref": "#/definitions/rangeOrInt"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Weight",
|
||||
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
|
||||
"minimum": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"growth_direction": {
|
||||
"title": "Growth Direction",
|
||||
"description": "Direction that the plant grows towards. Valid values: UP and DOWN",
|
||||
"type": "string",
|
||||
"enum": ["UP", "DOWN", "up", "down"]
|
||||
},
|
||||
"body_blocks": {
|
||||
"title": "Body Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the body of the plant.",
|
||||
"$ref": "#/definitions/blocks_array"
|
||||
},
|
||||
"head_blocks": {
|
||||
"title": "Head Blocks",
|
||||
"description": "Collection of weighted block descriptor that placement will select from for the body of the plant.",
|
||||
"$ref": "#/definitions/blocks_array"
|
||||
},
|
||||
"allow_water": {
|
||||
"title": "Allow Water",
|
||||
"description": "Plant blocks can be placed in water.",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,70 +1,58 @@
|
||||
{
|
||||
"title": "Multiface Feature",
|
||||
"description": "`minecraft:multiface_feature` places one or a few multiface blocks on floors/walls/ceilings. Despite the name, any block can be placed by this feature. During placement, existing world blocks are checked to see if this feature can be placed on them based on the list provided in the `can_place_on` field. If no `can_replace_on` field is specified, the `place_block` block can be placed on any existing block.\nThis feature will also try to spread the `place_block` block around the location in world the feature is placed.\nSucceeds if: At least one block is successfully placed.\nFails if: All block placements fail.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_block", "search_range", "can_place_on_floor", "can_place_on_ceiling", "can_place_on_wall", "chance_of_spreading"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"search_range": {
|
||||
"title": "Search Range",
|
||||
"description": "How far, in blocks, this feature can search for a valid position to place.",
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 64
|
||||
},
|
||||
"can_place_on_floor": {
|
||||
"title": "Can Place On Floor",
|
||||
"description": "Can this feature be placed on the ground (top face of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"can_place_on_ceiling": {
|
||||
"title": "Can Place On Ceiling",
|
||||
"description": "Can this feature be placed on the ceiling (bottom face of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"can_place_on_wall": {
|
||||
"title": "Can Place On Wall",
|
||||
"description": "Can this feature be placed on the wall (side faces of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"chance_of_spreading": {
|
||||
"title": "Chance of Spreading",
|
||||
"description": "For each block placed by this feature, how likely will that block spread to another?.",
|
||||
"type": "number",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"can_place_on": {
|
||||
"title": "Can Place On",
|
||||
"description": " How far, in blocks, this feature can search for a valid position to place.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"description": " A list of blocks that the block in this feature can be placed on. Omit this field to allow any block to be placed on.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Multiface Feature",
|
||||
"description": "`minecraft:multiface_feature` places one or a few multiface blocks on floors/walls/ceilings. Despite the name, any block can be placed by this feature. During placement, existing world blocks are checked to see if this feature can be placed on them based on the list provided in the `can_place_on` field. If no `can_replace_on` field is specified, the `place_block` block can be placed on any existing block.\nThis feature will also try to spread the `place_block` block around the location in world the feature is placed.\nSucceeds if: At least one block is successfully placed.\nFails if: All block placements fail.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_block", "search_range", "can_place_on_floor", "can_place_on_ceiling", "can_place_on_wall", "chance_of_spreading"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"search_range": {
|
||||
"title": "Search Range",
|
||||
"description": "How far, in blocks, this feature can search for a valid position to place.",
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 64
|
||||
},
|
||||
"can_place_on_floor": {
|
||||
"title": "Can Place On Floor",
|
||||
"description": "Can this feature be placed on the ground (top face of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"can_place_on_ceiling": {
|
||||
"title": "Can Place On Ceiling",
|
||||
"description": "Can this feature be placed on the ceiling (bottom face of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"can_place_on_wall": {
|
||||
"title": "Can Place On Wall",
|
||||
"description": "Can this feature be placed on the wall (side faces of a block)?.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"chance_of_spreading": {
|
||||
"title": "Chance Of Spreading",
|
||||
"description": "For each block placed by this feature, how likely will that block spread to another?.",
|
||||
"type": "number",
|
||||
"minimum": 0.0,
|
||||
"maximum": 1.0
|
||||
},
|
||||
"can_place_on": {
|
||||
"title": "Can Place On",
|
||||
"description": " How far, in blocks, this feature can search for a valid position to place.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"description": " A list of blocks that the block in this feature can be placed on. Omit this field to allow any block to be placed on.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"title": "Nether Cave Carver Feature",
|
||||
"description": "`minecraft:nether_cave_carver_feature` carves a cave through the Nether in the current chunk, and in every chunk around the current chunk in an 8 radial pattern.This feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Identifier",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Identifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../molang/number.json"
|
||||
},
|
||||
"skip_carve_chance": {
|
||||
"title": "Skip Carve Chance",
|
||||
"description": "The chance to skip doing the carve (1 / value).",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"height_limit": {
|
||||
"title": "Height Limit",
|
||||
"description": "The height limit where we attempt to carve",
|
||||
"type": "integer"
|
||||
},
|
||||
"y_scale": {
|
||||
"type": "array",
|
||||
"title": "Y Scale",
|
||||
"description": "The scaling in y",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"horizontal_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Horizontal Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"vertical_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Vertical Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"floor_level": {
|
||||
"type": "array",
|
||||
"title": "Floor Level",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,58 +1,53 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Ore Feature",
|
||||
"description": "`minecraft:ore_feature` places a vein of blocks to simulate ore deposits. Despite the name, any block can be placed by this feature. During placement, existing world blocks are checked to see if they can be replaced by the new ore block based on the list provided in the `may_replace` field of a `replace_rules` entry. If no `may_replace` field is specified in a `replace_rule` entry, the ore block can replace any existing block.\nSucceeds if: At least one ore block is successfully placed.\nFails if: All ore block placements fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["count", "description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"count": {
|
||||
"title": "Count",
|
||||
"description": "The number of blocks to be placed.",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"replace_rules": {
|
||||
"title": "Replace Rules",
|
||||
"description": "Collection of replace rules that will be checked in order of definition. If a rule is resolved, the rest will not be resolved for that block position.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Repalce Rule",
|
||||
"description": "If a rule is resolved, the rest will not be resolved for that block position.",
|
||||
"type": "object",
|
||||
"required": ["places_block"],
|
||||
"properties": {
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"may_replace": {
|
||||
"title": "May replace",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Ore Feature",
|
||||
"description": "`minecraft:ore_feature` places a vein of blocks to simulate ore deposits. Despite the name, any block can be placed by this feature. During placement, existing world blocks are checked to see if they can be replaced by the new ore block based on the list provided in the `may_replace` field of a `replace_rules` entry. If no `may_replace` field is specified in a `replace_rule` entry, the ore block can replace any existing block.\nSucceeds if: At least one ore block is successfully placed.\nFails if: All ore block placements fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["count", "description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"count": {
|
||||
"title": "Count",
|
||||
"description": "The number of blocks to be placed.",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"replace_rules": {
|
||||
"title": "Replace Rules",
|
||||
"description": "Collection of replace rules that will be checked in order of definition. If a rule is resolved, the rest will not be resolved for that block position.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Repalce Rule",
|
||||
"description": "If a rule is resolved, the rest will not be resolved for that block position.",
|
||||
"type": "object",
|
||||
"required": ["places_block"],
|
||||
"properties": {
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"may_replace": {
|
||||
"title": "May Replace",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"discard_chance_on_air_exposure": {
|
||||
"title": "Discard Chance On Air Exposure",
|
||||
"description": "Chance of discarding placement if neighboring block is Air.",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Partially Exposed Blob Feature",
|
||||
"description": "'minecraft:partially_exposed_blob_feature' generates a blob of the specified block with the specified dimensions For the most part the blob is embedded in the specified surface, however a single side is allowed to be exposed.",
|
||||
"additionalProperties": false,
|
||||
"required": ["places_block", "description", "placement_radius_around_floor", "placement_probability_per_valid_position"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"placement_radius_around_floor": {
|
||||
"title": "Placement Radius Around Floor",
|
||||
"description": "Defines the cubic radius of the blob.",
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 8
|
||||
},
|
||||
"placement_probability_per_valid_position": {
|
||||
"title": "Placement Probability Per Valid Position",
|
||||
"description": "The probability of trying to place a block at each position within the placement bounds.",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"exposed_face": {
|
||||
"title": "Exposed Face",
|
||||
"description": "Defines a block face that is allowed to be exposed to air and/or water. Other faces need to be embedded for blocks to be placed by this feature. Defaults to upwards face",
|
||||
"default": "up",
|
||||
"enum": [
|
||||
"up",
|
||||
"down",
|
||||
"side",
|
||||
"north",
|
||||
"east",
|
||||
"west",
|
||||
"south"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,141 +1,128 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Scatter Feature",
|
||||
"description": "`minecraft:scatter_feature` scatters a feature throughout a chunk. The `x`, `y`, and `z` fields are per-coordinate parameters.\nNote that coordinates represent an offset from the input position, not an absolute position. Coordinates may be a single value, a random distribution, or molang expression that resolves to a numeric value. The `coordinate_eval_order` field is provided for finer control of coordinate resolution (particularly when using the `grid` distribution). `iterations` controls how many individual placements should occur if the `scatter_chance` check succeeds. The `scatter_chance` check happens once, so either all placements will run or none will.\nSucceeds if: At least one feature placement succeeds.\nFails if: All feature placements fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_feature"],
|
||||
"definitions": {
|
||||
"coordinate": {
|
||||
"title": "Coordinate",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"description": "Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.",
|
||||
"additionalProperties": false,
|
||||
"required": ["extent", "distribution"],
|
||||
"properties": {
|
||||
"distribution": {
|
||||
"title": "Distribution",
|
||||
"description": "Type of distribution - uniform random, gaussian (centered in the range), or grid (either fixed-step or jittered).",
|
||||
"type": "string",
|
||||
"enum": ["uniform", "gaussian", "inverse_gaussian", "fixed_grid", "jittered_grid"]
|
||||
},
|
||||
"step_size": {
|
||||
"title": "Step Size",
|
||||
"description": "When the distribution type is grid, defines the distance between steps along this axis.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"grid_offset": {
|
||||
"title": "Step Size",
|
||||
"description": "When the distribution type is grid, defines the offset along this axis.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"extent": {
|
||||
"title": "Extent",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"title": "Lower Bound",
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"description": "Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around."
|
||||
},
|
||||
{
|
||||
"title": "Upper Bound",
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"description": "Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"project_input_to_floor": {
|
||||
"title": "Project Input To Floor",
|
||||
"description": "If true, snaps the y-value of the scattered position to the terrain heightmap. If false or unset, y-value is unmodified.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"iterations": {
|
||||
"title": "Iterations",
|
||||
"description": "Number of scattered positions to generate.",
|
||||
"$ref": "../../../../molang/number.json"
|
||||
},
|
||||
"scatter_chance": {
|
||||
"title": "Scatter Chance",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.",
|
||||
"properties": {
|
||||
"numerator": {
|
||||
"title": "Numerator",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"denominator": {
|
||||
"title": "Denominator",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"description": "Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will."
|
||||
}
|
||||
]
|
||||
},
|
||||
"coordinate_eval_order": {
|
||||
"title": "coordinate_eval_order",
|
||||
"description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to `xzy`.",
|
||||
"type": "string",
|
||||
"enum": ["xyz", "xzy", "yxz", "yzx", "zxy", "zyx"]
|
||||
},
|
||||
"x": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
},
|
||||
"y": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
},
|
||||
"z": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Scatter Feature",
|
||||
"description": "`minecraft:scatter_feature` scatters a feature throughout a chunk. The `x`, `y`, and `z` fields are per-coordinate parameters.\nNote that coordinates represent an offset from the input position, not an absolute position. Coordinates may be a single value, a random distribution, or molang expression that resolves to a numeric value. The `coordinate_eval_order` field is provided for finer control of coordinate resolution (particularly when using the `grid` distribution). `iterations` controls how many individual placements should occur if the `scatter_chance` check succeeds. The `scatter_chance` check happens once, so either all placements will run or none will.\nSucceeds if: At least one feature placement succeeds.\nFails if: All feature placements fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_feature", "iterations"],
|
||||
"definitions": {
|
||||
"coordinate": {
|
||||
"title": "Coordinate",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.",
|
||||
"additionalProperties": false,
|
||||
"required": ["extent", "distribution"],
|
||||
"properties": {
|
||||
"distribution": {
|
||||
"title": "Distribution",
|
||||
"description": "Type of distribution - uniform random, gaussian (centered in the range), triangle (centered in the range), or grid (either fixed-step or jittered).",
|
||||
"type": "string",
|
||||
"enum": ["uniform", "gaussian", "inverse_gaussian", "triangle", "fixed_grid", "jittered_grid"]
|
||||
},
|
||||
"step_size": {
|
||||
"title": "Step Size",
|
||||
"description": "When the distribution type is grid, defines the distance between steps along this axis.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"grid_offset": {
|
||||
"title": "Step Size",
|
||||
"description": "When the distribution type is grid, defines the offset along this axis.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"extent": {
|
||||
"title": "Extent",
|
||||
"description": "The lower and upper bound as an offset from the input position",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"title": "Lower Bound",
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around."
|
||||
},
|
||||
{
|
||||
"title": "Upper Bound",
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
},
|
||||
"project_input_to_floor": {
|
||||
"title": "Project Input To Floor",
|
||||
"description": "If true, snaps the y-value of the scattered position to the terrain heightmap. If false or unset, y-value is unmodified.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"iterations": {
|
||||
"title": "Iterations",
|
||||
"description": "Number of scattered positions to generate.",
|
||||
"$ref": "../../../molang/number.json"
|
||||
},
|
||||
"scatter_chance": {
|
||||
"title": "Scatter Chance",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.",
|
||||
"properties": {
|
||||
"numerator": {
|
||||
"title": "Numerator",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"denominator": {
|
||||
"title": "Denominator",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will."
|
||||
}
|
||||
]
|
||||
},
|
||||
"coordinate_eval_order": {
|
||||
"title": "Coordinate Eval Order",
|
||||
"description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to `xzy`.",
|
||||
"type": "string",
|
||||
"enum": ["xyz", "xzy", "yxz", "yzx", "zxy", "zyx"]
|
||||
},
|
||||
"x": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
},
|
||||
"y": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
},
|
||||
"z": {
|
||||
"title": "X",
|
||||
"$ref": "#/definitions/coordinate"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,71 +1,59 @@
|
||||
{
|
||||
"type": "object",
|
||||
"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", "search_axis"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"search_volume": {
|
||||
"title": "Places Feature",
|
||||
"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"],
|
||||
"properties": {
|
||||
"max": {
|
||||
"title": "Max",
|
||||
"description": "Maximum extent of the bounding volume expressed as [ x, y, z ].",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Maximum X", "type": "integer" },
|
||||
{ "title": "Maximum Y", "type": "integer" },
|
||||
{ "title": "Maximum Z", "type": "integer" }
|
||||
]
|
||||
},
|
||||
"min": {
|
||||
"title": "Min",
|
||||
"description": "Maxium extent of the bounding volume expressed as [ x, y, z ].",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Minimum X", "type": "integer" },
|
||||
{ "title": "Minimum Y", "type": "integer" },
|
||||
{ "title": "Minimum 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
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"type": "object",
|
||||
"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", "search_axis"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
},
|
||||
"search_volume": {
|
||||
"title": "Places Feature",
|
||||
"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"],
|
||||
"properties": {
|
||||
"max": {
|
||||
"title": "Max",
|
||||
"description": "Maximum extent of the bounding volume expressed as [ x, y, z ].",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Maximum X", "type": "integer" },
|
||||
{ "title": "Maximum Y", "type": "integer" },
|
||||
{ "title": "Maximum Z", "type": "integer" }
|
||||
]
|
||||
},
|
||||
"min": {
|
||||
"title": "Min",
|
||||
"description": "Maxium extent of the bounding volume expressed as [ x, y, z ].",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Minimum X", "type": "integer" },
|
||||
{ "title": "Minimum Y", "type": "integer" },
|
||||
{ "title": "Minimum 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +1,23 @@
|
||||
{
|
||||
"title": "Sequence Feature",
|
||||
"description": "`minecraft:sequence_feature` places a collection of features sequentially, in the order they appear in data. The output position of the previous feature is used as the input position for the next. For example, a tree feature is placed at (0, 0, 0) and places blocks up to (0, 10, 0). The next feature in the sequence begins at (0, 10, 0).\nSucceeds if: All features in the sequence are successfully placed.\nFails if: Any feature in the sequence fails to be placed. Features that have not yet been placed at the time of failure are skipped.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": "List of features to be placed in sequence. The output position of the previous feature is used as the input position to the next.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "A feature to be placed in sequence. The output position of the previous feature is used as the input position to the next.",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Sequence Feature",
|
||||
"description": "`minecraft:sequence_feature` places a collection of features sequentially, in the order they appear in data. The output position of the previous feature is used as the input position for the next. For example, a tree feature is placed at (0, 0, 0) and places blocks up to (0, 10, 0). The next feature in the sequence begins at (0, 10, 0).\nSucceeds if: All features in the sequence are successfully placed.\nFails if: Any feature in the sequence fails to be placed. Features that have not yet been placed at the time of failure are skipped.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": "List of features to be placed in sequence. The output position of the previous feature is used as the input position to the next.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "A feature to be placed in sequence. The output position of the previous feature is used as the input position to the next.",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,86 +1,74 @@
|
||||
{
|
||||
"title": "Single Block Feature",
|
||||
"description": "`minecraft:single_block_feature` places a single block in the world. The `may_place_on` and `may_replace` fields are allowlists which specify where the block can be placed. If these fields are omitted, the block can be placed anywhere. The block's internal survivability and placement rules can optionally be enforced with the `enforce_survivability_rules` and `enforce_placement_rules` fields. These rules are specified per-block and are typically designed to produce high quality gameplay or natural behavior. However, enabling this enforcement may make it harder to debug placement failures.\n Succeeds if: The block is successfully placed in the world.\n Fails if: The block fails to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_block", "enforce_placement_rules", "enforce_survivability_rules"],
|
||||
"definitions": {
|
||||
"block_side": {
|
||||
"oneOf": [{ "type": "string" }, { "type": "array", "items": { "title": "Block Side", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "string" } }]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
},
|
||||
"enforce_placement_rules": {
|
||||
"title": "Enforce Placement Rules",
|
||||
"description": "If true, enforce the block's canPlace check.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enforce_survivability_rules": {
|
||||
"title": "Enforce Survivability Rules",
|
||||
"description": "If true, enforce the block's canSurvive check.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"may_attach_to": {
|
||||
"title": "May Attach To",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
"properties": {
|
||||
"min_sides_must_attach": {
|
||||
"title": "Minimum Sides Must Attach",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"minimum": 1,
|
||||
"maximum": 4
|
||||
},
|
||||
"auto_rotate": {
|
||||
"title": "Auto Rotate",
|
||||
"description": "Automatically rotate the block to attach sensibly."
|
||||
},
|
||||
"top": { "title": "Top", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"bottom": { "title": "Bottom", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"north": { "title": "North", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"south": { "title": "South", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"east": { "title": "East", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"west": { "title": "West", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"all": { "title": "All", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"sides": { "title": "Sides", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" }
|
||||
}
|
||||
},
|
||||
"may_replace": {
|
||||
"title": "May Replace",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"additionalProperties": false,
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"description": "A block that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Single Block Feature",
|
||||
"description": "`minecraft:single_block_feature` places a single block in the world. The `may_place_on` and `may_replace` fields are allowlists which specify where the block can be placed. If these fields are omitted, the block can be placed anywhere. The block's internal survivability and placement rules can optionally be enforced with the `enforce_survivability_rules` and `enforce_placement_rules` fields. These rules are specified per-block and are typically designed to produce high quality gameplay or natural behavior. However, enabling this enforcement may make it harder to debug placement failures.\n Succeeds if: The block is successfully placed in the world.\n Fails if: The block fails to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "places_block", "enforce_placement_rules", "enforce_survivability_rules"],
|
||||
"definitions": {
|
||||
"block_side": {
|
||||
"oneOf": [
|
||||
{ "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/identifier.json" },
|
||||
{ "type": "array", "items": { "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/identifier.json" } }
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"places_block": {
|
||||
"title": "Places Block",
|
||||
"description": "Reference to the block to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"enforce_placement_rules": {
|
||||
"title": "Enforce Placement Rules",
|
||||
"description": "If true, enforce the block's canPlace check.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enforce_survivability_rules": {
|
||||
"title": "Enforce Survivability Rules",
|
||||
"description": "If true, enforce the block's canSurvive check.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"may_attach_to": {
|
||||
"title": "May Attach To",
|
||||
"description": "The list of valid block and block faces the given block may attach to when being placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"min_sides_must_attach": {
|
||||
"title": "Minimum Sides Must Attach",
|
||||
"description": "Minimum number of sides that must be attached when being placed.",
|
||||
"minimum": 1,
|
||||
"maximum": 4
|
||||
},
|
||||
"auto_rotate": {
|
||||
"title": "Auto Rotate",
|
||||
"description": "Automatically rotate the block to attach sensibly.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"top": { "title": "Top", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"bottom": { "title": "Bottom", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"north": { "title": "North", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"south": { "title": "South", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"east": { "title": "East", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"west": { "title": "West", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"all": { "title": "All", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" },
|
||||
"sides": { "title": "Sides", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/block_side" }
|
||||
}
|
||||
},
|
||||
"may_replace": {
|
||||
"title": "May Replace",
|
||||
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"description": "A block that may be replaced during placement. Omit this field to allow any block to be replaced.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,41 +1,41 @@
|
||||
{
|
||||
"title": "Snap To Surface Feature",
|
||||
"description": "`minecraft:snap_to_surface_feature` snaps the y-value of a feature placement pos to the floor or the ceiling within the provided `vertical_search_range`. The placement biome is preserved. \nIf the snap position goes outside of the placement biome, placement will fail.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "feature_to_snap", "vertical_search_range"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"feature_to_snap": {
|
||||
"title": "Feature to snap",
|
||||
"description": "Named reference of feature to be snapped.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
},
|
||||
"vertical_search_range": {
|
||||
"title": "Vertical search range",
|
||||
"description": "Range to search for a floor or ceiling for snaping the feature.",
|
||||
"type": "number"
|
||||
},
|
||||
"surface": {
|
||||
"title": "Surface",
|
||||
"description": "Defines the surface that the y-value of the placement position will be snapped to. Valid values: `ceiling` and `floor'",
|
||||
"type": "string",
|
||||
"enum": ["ceiling", "floor"]
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Snap To Surface Feature",
|
||||
"description": "`minecraft:snap_to_surface_feature` snaps the y-value of a feature placement pos to the floor or the ceiling within the provided `vertical_search_range`. The placement biome is preserved. \nIf the snap position goes outside of the placement biome, placement will fail.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "feature_to_snap", "vertical_search_range"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"feature_to_snap": {
|
||||
"title": "Feature To Snap",
|
||||
"description": "Named reference of feature to be snapped.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
},
|
||||
"vertical_search_range": {
|
||||
"title": "Vertical Search Range",
|
||||
"description": "Range to search for a floor or ceiling for snaping the feature.",
|
||||
"type": "number"
|
||||
},
|
||||
"surface": {
|
||||
"title": "Surface",
|
||||
"description": "Defines the surface that the y-value of the placement position will be snapped to. Valid values: `ceiling` and `floor'",
|
||||
"type": "string",
|
||||
"enum": ["ceiling", "floor", "random_horizontal"]
|
||||
},
|
||||
"allow_air_placement": {
|
||||
"title": "Allow Air Placement",
|
||||
"description": "Determines whether the feature can snap through air blocks",
|
||||
"type":"boolean",
|
||||
"default": true
|
||||
},
|
||||
"allow_underwater_placement": {
|
||||
"title": "Allow Underwater Placement",
|
||||
"description": "Determines whether the feature can snap through water blocks",
|
||||
"type":"boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,93 +1,81 @@
|
||||
{
|
||||
"title": "Structure Template Feature",
|
||||
"description": "`minecraft:structure_template_feature` places a structure in the world. The structure must be stored as a .mcstructure file in the `structures` subdirectory of a behavior pack. It is possible to reference structures that are part of other behavior packs, they do not need to come from the same behavior pack as this feature. Constraints can be defined to specify where the structure is allowed to be placed. During placement, the feature will search for a position within the 'adjustment_radius' that satisfies all constraints. If none are found, the structure will not be placed.\nSucceeds if: The structure is placed in the world.\nFails if: The structure fails to be placed within the world.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "structure_name", "constraints"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"structure_name": {
|
||||
"title": "Structure Name",
|
||||
"description": "Reference to the structure to be placed.",
|
||||
"type": "string"
|
||||
},
|
||||
"adjustment_radius": {
|
||||
"title": "Adjustment Radius",
|
||||
"description": "How far the structure is allowed to move when searching for a valid placement position. Search is radial, stopping when the nearest valid position is found. Defaults to 0 if omitted.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 16
|
||||
},
|
||||
"facing_direction": {
|
||||
"title": "Facing Direction",
|
||||
"description": "Direction the structure will face when placed in the world. Defaults to `random` if omitted.",
|
||||
"type": "string",
|
||||
"enum": ["north", "south", "east", "west", "random"]
|
||||
},
|
||||
"constraints": {
|
||||
"title": "",
|
||||
"description": "Specific constraints that must be satisfied when placing this structure.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"grounded": {
|
||||
"title": "Grounded",
|
||||
"description": "When specified, ensures the structure is on the ground.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
},
|
||||
"unburied": {
|
||||
"title": "Unburied",
|
||||
"description": "When specified, ensures the structure has air above it.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
},
|
||||
// When specified, ensures the structure only intersects with allowlisted blocks.
|
||||
"block_intersection": {
|
||||
"title": "Unburied",
|
||||
"description": "When specified, ensures the structure has air above it.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"block_allowlist": {
|
||||
"title": "Block Allowlist",
|
||||
"description": "List of blocks the owning structure is allowed to intersect with.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"block_whitelist": {
|
||||
"title": "Block Whitelist",
|
||||
"description": "List of blocks the owning structure is allowed to intersect with.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Structure Template Feature",
|
||||
"description": "`minecraft:structure_template_feature` places a structure in the world. The structure must be stored as a .mcstructure file in the `structures` subdirectory of a behavior pack. It is possible to reference structures that are part of other behavior packs, they do not need to come from the same behavior pack as this feature. Constraints can be defined to specify where the structure is allowed to be placed. During placement, the feature will search for a position within the 'adjustment_radius' that satisfies all constraints. If none are found, the structure will not be placed.\nSucceeds if: The structure is placed in the world.\nFails if: The structure fails to be placed within the world.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "structure_name", "constraints"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"structure_name": {
|
||||
"title": "Structure Name",
|
||||
"description": "Reference to the structure to be placed.",
|
||||
"type": "string"
|
||||
},
|
||||
"adjustment_radius": {
|
||||
"title": "Adjustment Radius",
|
||||
"description": "How far the structure is allowed to move when searching for a valid placement position. Search is radial, stopping when the nearest valid position is found. Defaults to 0 if omitted.",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 16
|
||||
},
|
||||
"facing_direction": {
|
||||
"title": "Facing Direction",
|
||||
"description": "Direction the structure will face when placed in the world. Defaults to `random` if omitted.",
|
||||
"type": "string",
|
||||
"enum": ["north", "south", "east", "west", "random"]
|
||||
},
|
||||
"constraints": {
|
||||
"title": "",
|
||||
"description": "Specific constraints that must be satisfied when placing this structure.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"grounded": {
|
||||
"title": "Grounded",
|
||||
"description": "When specified, ensures the structure is on the ground.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
},
|
||||
"unburied": {
|
||||
"title": "Unburied",
|
||||
"description": "When specified, ensures the structure has air above it.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
},
|
||||
// When specified, ensures the structure only intersects with allowlisted blocks.
|
||||
"block_intersection": {
|
||||
"title": "Unburied",
|
||||
"description": "When specified, ensures the structure has air above it.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"block_allowlist": {
|
||||
"title": "Block Allowlist",
|
||||
"description": "List of blocks the owning structure is allowed to intersect with.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"block_whitelist": {
|
||||
"title": "Block Whitelist",
|
||||
"description": "List of blocks the owning structure is allowed to intersect with.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Block",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"type": "object",
|
||||
"title": "Surface Relative Threshold Feature",
|
||||
"description": "'minecraft:surface_relative_threshold_feature' determines whether the provided position is below the estimated surface level of the world, and places a feature if so.If the provided position is above configured surface or the surface is not available, placement will fail.",
|
||||
"additionalProperties": false,
|
||||
"required": ["feature_to_place", "description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"feature_to_place": {
|
||||
"title": "Feature To Place",
|
||||
"description": "Named reference of feature to be placed.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
},
|
||||
"minimum_distance_below_surface": {
|
||||
"title": "Minimum Distance Below Surface",
|
||||
"description": "The minimum number of blocks required to be between the estimated surface level and a valid place for this feature.",
|
||||
"type": "integer",
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
1507
source/behavior/features/features/minecraft.tree_feature.json
Normal file
1507
source/behavior/features/features/minecraft.tree_feature.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"title": "Underwater Cave Carver Feature",
|
||||
"description": "'minecraft:underwater_cave_carver_feature' carves a cave through the world in the current chunk, and in every chunk around the current chunk in an 8 radial pattern.This feature will specifically target creating caves only below sea level.\nThis feature will also only work when placed specifically in the pass `pregeneration_pass`.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"fill_with": {
|
||||
"title": "Fill With",
|
||||
"description": "Reference to the block to fill the cave with.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"width_modifier": {
|
||||
"title": "Width Modifier",
|
||||
"description": "How many blocks to increase the cave radius by, from the center point of the cave.",
|
||||
"$ref": "../../../molang/number.json"
|
||||
},
|
||||
"skip_carve_chance": {
|
||||
"title": "Skip Carve Chance",
|
||||
"description": "The chance to skip doing the carve (1 / value).",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"height_limit": {
|
||||
"title": "Height Limit",
|
||||
"description": "The height limit where we attempt to carve",
|
||||
"type": "integer"
|
||||
},
|
||||
"y_scale": {
|
||||
"type": "array",
|
||||
"title": "Y Scale",
|
||||
"description": "The scaling in y",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"horizontal_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Horizontal Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"vertical_radius_multiplier": {
|
||||
"type": "array",
|
||||
"title": "Vertical Radius Multiplier",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"floor_level": {
|
||||
"type": "array",
|
||||
"title": "Floor Level",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"items": [
|
||||
{ "type": "number", "title": "Min" },
|
||||
{ "type": "number", "title": "Max" }
|
||||
]
|
||||
},
|
||||
"replace_air_with": {
|
||||
"title": "Replace Air With",
|
||||
"description": "Reference to the block to replace air blocks with.",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"title": "Vegetation Patch Feature",
|
||||
"description": "Feature type `minecraft:vegetation_patch_feature` has not yet been documented.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "replaceable_blocks", "ground_block", "horizontal_radius", "vegetation_feature"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"replaceable_blocks": {
|
||||
"title": "Replaceable Blocks",
|
||||
"description": "Blocks that can be replaced by the ground blocks on the patch.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Replace Block",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
}
|
||||
},
|
||||
"ground_block": {
|
||||
"title": "Ground Block",
|
||||
"description": "Block used to create a base for the vegetation patch.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/block/identifier.json"
|
||||
},
|
||||
"vegetation_feature": {
|
||||
"title": "Vegetation Feature",
|
||||
"description": "Feature that will be placed by the patch.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"surface": {
|
||||
"title": "Surface",
|
||||
"description": "Determines if a vegetation patch will grow from the ceiling or the floor.",
|
||||
"enum": ["floor", "ceiling"],
|
||||
"default": "floor"
|
||||
},
|
||||
"depth": {
|
||||
"title": "Depth",
|
||||
"description": "Depth of the base covered by the ground blocks.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"extra_deep_block_chance": {
|
||||
"title": "Extra Deep Block Chance",
|
||||
"description": "Probability of putting the ground blocks one block deeper. Adds some randomness to the bottom of the patch.",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"vertical_range": {
|
||||
"title": "Vertical Range",
|
||||
"description": "Vertical range used to determine a suitable surface position for the patch.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"vegetation_chance": {
|
||||
"title": "Vegatation Chance",
|
||||
"description": "Probability of spawning vegetation on the patch. Larger numbers create a denser vegetation patch.",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"horizontal_radius": {
|
||||
"title": "Horizontal Radius",
|
||||
"description": "Horizontal area that the vegetation patch will cover.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"extra_edge_column_chance": {
|
||||
"title": "Extra Egde Column Chance",
|
||||
"description": "Probability of spawning vegetation on the edge of the patch radius.",
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"waterlogged": {
|
||||
"title": "Waterlogged",
|
||||
"description": "If true, waterlogs the positions occupied by the ground blocks.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,43 +1,31 @@
|
||||
{
|
||||
"title": "Weighted Random Feature",
|
||||
"description": "'minecraft:weighted_random_feature' randomly selects and places a feature based on a weight value. Weights are relative, with higher values making selection more likely.\nSucceeds if: The selected feature is placed.\nFails if: The selected feature fails to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"required": ["identifier"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": " Collection of weighted features that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "Named reference to a feature.",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Feature", "description": "Named reference to a feature.", "$ref": "../../../../general/feature/identifier.json" },
|
||||
{
|
||||
"title": "Weight",
|
||||
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
|
||||
"type": "number"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"title": "Weighted Random Feature",
|
||||
"description": "'minecraft:weighted_random_feature' randomly selects and places a feature based on a weight value. Weights are relative, with higher values making selection more likely.\nSucceeds if: The selected feature is placed.\nFails if: The selected feature fails to be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "features"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"$ref": "../types/description.json"
|
||||
},
|
||||
"features": {
|
||||
"title": "Features",
|
||||
"description": " Collection of weighted features that placement will select from.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"title": "Feature",
|
||||
"description": "Named reference to a feature.",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{ "title": "Feature", "description": "Named reference to a feature.", "$ref": "../../../general/feature/identifier.json" },
|
||||
{
|
||||
"title": "Weight",
|
||||
"description": "Weight used in random selection. Value is relative to other weights in the collection.",
|
||||
"type": "number"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
UP and DOWN can be lowercase or uppercase.
|
||||
Head and body blocks must be arrays of arrays (see my code).
|
||||
The first value of an array in the height distribution array or the value of the "age" property may be of the form `{"range_min": 1, "range_max": 13}`
|
||||
or an integer. In other words, the schema is terrible with this one. Again, see my code.
|
||||
@@ -1,3 +0,0 @@
|
||||
# ore
|
||||
|
||||
All references are just block descriptors.
|
||||
@@ -1,2 +0,0 @@
|
||||
This feature is currently bugged and rather worthless. Presumably, ratio_of_empty_space will only be on [0, 1], but I can't promise this is true. The
|
||||
area dimensions may also be restricted by maximum logical sizes, but I can't verify that, either. Otherwise, the schema is probably correct.
|
||||
@@ -1,5 +0,0 @@
|
||||
# Scatter features note
|
||||
|
||||
The Mojang schema for these features is perfectly valid with a caveat: In scatter features, "x", "y", "z", "scatter_chance", and "iterations" can also
|
||||
be numbers, as can the "extents" of any of the coordinates. Well, the extents are arrays, but their bounds can be numbers. Finally, note that anywhere
|
||||
a block can be placed in features, a stateful notation can be used, as I describe here: https://wiki.bedrock.dev/concepts/biomes#block-types
|
||||
21
source/behavior/features/types/chance_information.json
Normal file
21
source/behavior/features/types/chance_information.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.features.chance_information",
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"title": "Chance Information",
|
||||
"description": "Chance of something happening represented either as a fraction or a percentage.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"numerator": { "type": "number", "minimum": 1, "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Numerator" },
|
||||
"denominator": { "type": "number", "minimum": 1, "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Denominator" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"type":"number",
|
||||
"minimum": 0,
|
||||
"maximum": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
17
source/behavior/features/types/description.json
Normal file
17
source/behavior/features/types/description.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.features.description",
|
||||
"title": "Description",
|
||||
"description": "Feature's description containing the identifier",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"identifier"
|
||||
],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
"replaceable_blocks": array of block references or stateful objects, required even if empty (but useless if empty),
|
||||
"ground_block": block reference, required
|
||||
"waterlogged": boolean, opt, defaults to false,
|
||||
|
||||
"surface": string: "floor"|"ceiling", opt, defaults to "floor"
|
||||
"horizontal_radius": int (maybe floats work but are probably truncated), required, must be 0 or greater for feature to work, but no error is thrown if
|
||||
negative is given
|
||||
"vertical_range": int >= 0, required, values below 0 clamped,
|
||||
"depth": int, required, typically 1+, 0 acts like 1, negative values do have functionality, though: continue downward indefinitely until hitting an
|
||||
invalid block or world boundary,
|
||||
"extra_deep_block_chance": float, [0, 1], values above or below clamped, opt, defaults to 0
|
||||
"extra_edge_column_chance": float, [0, 1], values above or below clamped, opt, defaults to 0
|
||||
|
||||
"vegetation_feature": feature reference, required, doesn't do anything when vegetation_chance is 0 or less,
|
||||
"vegetation_chance": float, [0, 1], values above or below clamped, opt, defaults to 0
|
||||
Reference in New Issue
Block a user