Update features (#235)

* - Update features

* - Fix
This commit is contained in:
Xterionix
2024-03-21 15:01:23 +05:00
committed by GitHub
parent af620585f0
commit e65c85ddfa
41 changed files with 2892 additions and 3030 deletions

View File

@@ -0,0 +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": {
"$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
}
}
}