* Update vscode-settings.json * - Updated map color * - Added replaceable block component * - Effect durations can be set to infinite now * - Added support for entity sound variants * - Fix description for renders_when_invisible entity component * - Added is_collidable component * - Updated entity_sensor * - Added body_rotation_axis_aligned * - Updated projectile > on_hit * - Set min and max for collision_box * - Added locator field to sounds in animation controllers and animations * - Added new event response * - Removed peak_factor from mountain_parameters component * - Added isotropic field to material_instances * - Added tint field to material_instances * - Added input_air_controlled entity component * - Added use_beta_features property to entity.json * - Added missing match_tool property * - Added use_home_position_restriction to float_wander goal * - Added deferred client biome components * - Added dry_foliage_color client biome component * - Added destruction_particles * - Marked biome tinting as experimental * - Fix property_inheritance under breedable * - Fix inconsistency with scatter feature * - Update rideable description * - Allowed event.add/remove to be strings * - Added missing property in move_around_target behavior * - Made features accept block references * - Allowed repairable to use item descriptors * - Fix typo
121 lines
3.9 KiB
JSON
121 lines
3.9 KiB
JSON
{
|
|
"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/reference.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"
|
|
}
|
|
}
|
|
}
|