跳到主要内容

Bettermodel Hitbox Data

Configure hitbox on a specific bone

字段

字段类型默认值描述
hitboxesList<BoneHitbox>emptyList of hitboxes to attach to bones
BoneHitbox(7)
字段类型默认值描述
boneNameString——
widthFloat0.5—
heightFloat0.5—
scaleFloat1.0—
offsetXDouble0.0—
offsetYDouble0.0—
offsetZDouble0.0—
TypeWriter 通用字段(priorityOverride)
字段类型默认值描述
priorityOverrideOptional<Int>——

How to use it​

Each hitbox is an invisible interaction box that follows a bone. boneName is the bone, width and height the size (default 0.5), scale multiplies it, and offsetX, offsetY, offsetZ shift it from the bone position. Clicking a box counts as clicking the NPC.

When at least one hitbox is defined, the model's own hitbox bones are hidden and replaced by yours. The global height correction is hitboxYOffset in the definition's defaultAnimationSettings.