Skip to content

Commit

Permalink
Updated collision box
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Oct 29, 2022
1 parent 51d949a commit 6816688
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions source/behavior/blocks/format/components/collision_box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$id": "blockception.minecraft.behavior.blocks.minecraft.destroy_time",
"title": "Destroy Time",
"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",
"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.0, "maximum": 8 },
{ "title": "Y", "minimum": 0, "maximum": 16 },
{ "title": "Z", "minimum": -8.0, "maximum": 8 }
]
},
"size": {
"title": "Size",
"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" },
{ "title": "Y", "type": "number" },
{ "title": "Z", "type": "number" }
]
}
}
}
]
}

0 comments on commit 6816688

Please sign in to comment.