This commit is contained in:
DaanV2
2021-06-06 13:00:25 +02:00
parent 4e62c0237c
commit b0d9e9146c
105 changed files with 33270 additions and 173 deletions

View File

@@ -14,7 +14,6 @@
"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" },

View File

@@ -1,6 +1,6 @@
{
"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. Succeeds if: At lease one feature is placed successfully. Fails if: All features fail to be placed.",
"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,
"properties": {
@@ -11,7 +11,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -1,19 +0,0 @@
{
"type": "object",
"additionalProperties": false,
"properties": {
"description": {
"title": "Description",
"description": "",
"type": "object",
"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"
}
}
}
}
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -1,6 +1,9 @@
{
"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",
@@ -9,11 +12,22 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}
}
}
}

View File

@@ -1,6 +1,14 @@
{
"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": "UNDOCUMENTATED", "description": "UNDOCUMENTATED", "type": "string" } }]
}
},
"properties": {
"description": {
"title": "Description",
@@ -9,11 +17,66 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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": "",
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"min_sides_must_attach": {
"title": "Minimum sides must attach",
"description": "UNDOCUMENTATED",
"minimum": 1,
"maximum": 4
},
"auto_rotate": {
"title": "Auto rotate",
"description": "Automatically rotate the block to attach sensibly."
},
"top": { "title": "Top", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"bottom": { "title": "Bottom", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"north": { "title": "North", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"south": { "title": "South", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"east": { "title": "East", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"west": { "title": "West", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"all": { "title": "All", "description": "UNDOCUMENTATED", "$ref": "#/definitions/block_side" },
"sides": { "title": "Sides", "description": "UNDOCUMENTATED", "$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"
}
}
}
}

View File

@@ -1,6 +1,9 @@
{
"title": "",
"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",
@@ -9,11 +12,28 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"]
}
}
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}

View File

@@ -9,7 +9,7 @@
"properties": {
"identifier": {
"title": "Identifier",
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
"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"
}