Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.8.0/components/minecraft.custom_hit_test.json
2021-10-08 12:54:09 +02:00

43 lines
1.4 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.custom_hit_test",
"type": "object",
"title": "Custom Hit Test 1.16.0",
"description": "List of hitboxes for melee and ranged hits against the entity.",
"additionalProperties": false,
"properties": {
"hitboxes": {
"type": "array",
"title": "Hitboxes",
"description": "Defines a hitbox size and pivot to test against.",
"items": {
"type": "object",
"title": "Hitbox",
"description": "Defines a hitbox size and pivot to test against.",
"additionalProperties": false,
"properties": {
"width": {
"type": "number",
"title": "Width",
"description": "Height of the hitbox in blocks. A negative value will be assumed to be 0."
},
"height": {
"type": "number",
"title": "Height",
"description": "Width and Depth of the hitbox in blocks. A negative value will be assumed to be 0."
},
"pivot": {
"type": "array",
"title": "Pivot",
"description": "The offset from the entity's anchor where the hitbox will spawn",
"items": [
{ "type": "number", "title": "X" },
{ "type": "number", "title": "Y" },
{ "type": "number", "title": "Z" }
]
}
}
}
}
}
}