2021-06-06 10:07:19 +00:00
|
|
|
{
|
|
|
|
|
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.custom_hit_test",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Custom Hit Test 1.8.0",
|
2021-07-02 13:00:02 +02:00
|
|
|
"description": "Defines a list of hitboxes for melee and ranged hits against the entity.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"hitboxes": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Hitboxes",
|
2021-07-02 13:00:02 +02:00
|
|
|
"description": "Defines a hitbox size and pivot to test against.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"items": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Hitbox",
|
2021-07-02 13:00:02 +02:00
|
|
|
"description": "Defines a hitbox size and pivot to test against.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"additionalProperties": false,
|
2021-07-02 13:00:02 +02:00
|
|
|
"required": ["width", "height", "pivot"],
|
2021-06-06 10:07:19 +00:00
|
|
|
"properties": {
|
2021-07-02 13:00:02 +02:00
|
|
|
"width": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"title": "Width",
|
|
|
|
|
"description": "Width and Depth of the hitbox in blocks. A negative value will be assumed to be 0."
|
|
|
|
|
},
|
|
|
|
|
"height": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"title": "Height",
|
|
|
|
|
"description": "Height of the hitbox in blocks. A negative value will be assumed to be 0."
|
|
|
|
|
},
|
2021-06-06 10:07:19 +00:00
|
|
|
"pivot": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Pivot",
|
2021-07-02 13:00:02 +02:00
|
|
|
"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" }
|
|
|
|
|
]
|
2021-06-06 10:07:19 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|