Files
minecraft-bedrock-json-schemas/source/behavior/blocks/format/components/collision_box.json
QuazChick 0967f0790f Correct collision/selection box schemas (#359)
* Corrected collision box schema

* Corrected selection box schema
2025-07-09 11:35:04 +02:00

40 lines
1.6 KiB
JSON

{
"$id": "blockception.minecraft.behavior.blocks.minecraft.collision_box",
"title": "Collision Box",
"description": "This component can be specified as a Boolean. If this component is omitted, the default value for this component is true, which will give your block the default values for its parameters (a collision box the size/shape of a regular block).",
"oneOf": [
{
"type": "boolean",
"default": true
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"origin": {
"title": "Origin",
"default": [-8, 0, -8],
"description": "Minimal position of the bounds of the collision 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, "maximum": 8 },
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": -8, "maximum": 8 }
]
},
"size": {
"title": "Size",
"default": [16, 16, 16],
"description": "Size of each side of the collision 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": 0, "maximum": 16 },
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": 0, "maximum": 16 }
]
}
}
}
]
}