Files
minecraft-bedrock-json-schemas/source/behavior/blocks/format/components/selection_box.json
Xterionix c56338d900 Update blocks and items to newest format (#215)
* Add emit_vibration
* Add min and max bounds to collision_box
* Remove experimental label from crafting_table
* Fix flammable definition
* Add geometry.cross
* Add culling property to block_culling_rules
* Add max length to loot
* Remove part visibility
* Remove experimental label from placement filter
* Add min max bounds to selection box
* Remove unit cube as deprecated
* Remove armor component
* Add protection to wearable
* Remove render offsets
* Remove on_dig
* Remove dye powder
* Remove knockback resistance
* Update durability
* Remove foil
* Add glint
* Update hand_equipped
* Update food
* Remove frame from :icon
* Remove max damage
* Remove on_use
* Remove on_use_on
* Update max stack size
* Update repairable
* Updated :shooter
* Update stacked by data
* Add use modifiers
* Remove use_duration
* Remove weapon
* Add allow_off_hand
* Add can_destroy_in_creative
* Add damage
* Fix max_stack_size
* Add enchantable
* Add hover text color
* Add liquid clipped
* Add record
* Add should_despawn
* Tags component
* Add use_animation
* Update item components
* Update block components
* Update source/behavior/entities/format/events.json
---------
Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
2024-02-11 12:05:56 +01:00

37 lines
1.6 KiB
JSON

{
"$id": "blockception.minecraft.behavior.blocks.minecraft.selection_box",
"title": "Selection Box",
"description": "Defines the area of the block that is selected by the player's cursor. If set to true, default values are used. If set to false, this block is not selectable by the player's cursor. If this component is omitted, default values are used.",
"oneOf": [
{ "type": "boolean" },
{
"type": "object",
"additionalProperties": false,
"properties": {
"origin": {
"title": "Origin",
"default": [0, 0, 0],
"description": "Minimal position of the bounds of the selection box. \"origin\" is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.",
"type": "array",
"items": [
{ "title": "X", "type": "number", "minimum": -8.0, "maximum": 8 },
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": -8.0, "maximum": 8 }
]
},
"size": {
"title": "Size",
"default": [8.0, 8.0, 8.0],
"description": "Size of each side of the selection box. Size is specified as [x, y, z]. \"origin\" + \"size\" must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.",
"type": "array",
"items": [
{ "title": "X", "type": "number", "minimum": -8.0, "maximum": 8},
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": -8.0, "maximum": 8}
]
}
}
}
]
}