Custom Hit Test¶
文档版本:1.21.50.25
List of hitboxes for melee and ranged hits against the entity.
架构¶
custom_hit_test:
{
array "hitboxes" : opt
{
object "<any array element>" : opt
{
number "width" : opt
number "height" : opt
array "pivot" : opt
{
number "0..0" : opt
number "1..1" : opt
number "2..2" : opt
}
}
}
}
hitboxes
:array- Defines a hitbox size and pivot to test against.
hitboxes
<any array element>
:object- Defines a hitbox size and pivot to test against.
<any array element>
width
:number- Height of the hitbox in blocks. A negative value will be assumed to be 0.
height
:number- Width and Depth of the hitbox in blocks. A negative value will be assumed to be 0.
pivot
:array- The offset from the entity's anchor where the hitbox will spawn.
pivot
0..0
:number
1..1
:number
2..2
:number