Files
minecraft-bedrock-json-schemas/behavior/features/features.json

1 line
74 KiB
JSON
Raw Normal View History

2022-07-22 17:41:44 +00:00
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.features","examples":[{"format_version":"1.19.0","minecraft:ore_feature":{"description":{"identifier":"example:foo"},"features":{}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.13.0"}}},"then":{"$ref":"#/definitions/A"}},{"properties":{"format_version":{"$ref":"#/definitions/CH"}}}],"definitions":{"C":{"description":"A minecraft feature identifier.","examples":["namespace:feature"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$","title":"Feature Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"B":{"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":"#/definitions/C"}}},"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"]}}},"E":{"description":"A minecraft block identifier.","examples":["namespace:block"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$","title":"Block Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"D":{"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":"#/definitions/C"}}},"places_feature":{"title":"Places Feature","description":"Named reference of feature to be placed.","type":"string","$ref":"#/definitions/C"},"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":"#/definitions/E"},"subsurface_block_type":{"title":"Subsurface Block Type","description":"Reference to the block to be placed.","type":"string","$ref":"#/definitions/E"},"beard_raggedness_