Correct collision/selection box schemas (#359)

* Corrected collision box schema

* Corrected selection box schema
This commit is contained in:
QuazChick
2025-07-09 10:35:04 +01:00
committed by GitHub
parent 108d85e9ee
commit 0967f0790f
2 changed files with 17 additions and 12 deletions

View File

@@ -13,22 +13,24 @@
"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.0, "maximum": 8 },
{ "title": "X", "type": "number", "minimum": -8, "maximum": 8 },
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": -8.0, "maximum": 8 }
{ "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": -8.0, "maximum": 8 },
{ "title": "Y", "type": "number","minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number","minimum": -8.0, "maximum": 8 }
{ "title": "X", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Y", "type": "number", "minimum": 0, "maximum": 16 },
{ "title": "Z", "type": "number", "minimum": 0, "maximum": 16 }
]
}
}