跳到主要内容

Bettermodel Entity Cinematic

Use an animated BetterModel entity in a cinematic

字段

字段类型默认值描述
definitionRef<BetterModelDefinition>—The entity definition to use in the cinematic
BetterModelDefinition(11)
字段类型默认值描述
displayNameVar<String>——
soundVar<Sound>EMPTY—
dataList<Ref<EntityData<*>>>empty—
modelIdVar<String>—The BetterModel model ID to use
namedVar<Boolean>falseWhether the entity should display a nametag
defaultAnimationSettingsDefaultAnimationSettings—Default animation settings for the entity
DefaultAnimationSettings(10)
字段类型默认值描述
walkAnimationBooleantrueRun the default walk animation if the entity is moving
idleVar<String>idleThe idle animation to play when the entity is not moving
walkVar<String>walkThe walk animation to play when the entity is moving
attackVar<String>attackThe attack animation to play when the entity swings its arm
hurtVar<String>hurtThe hurt animation to play when the entity takes damage
strafeVar<String>strafeThe strafe animation to play when the entity moves sideways
jumpVar<String>jumpThe jump animation to play when the entity leaves the ground
flyVar<String>flyThe flying animation to play when the entity is airborne
interactVar<String>interactThe interact animation to play when the entity is interacted with
hitboxYOffsetDouble-1.6Y offset applied to bone hitbox interaction entities (client-side positioning)
focusOffsetVector—Offset used as focus point for interaction bounds like look_at
headLightVar<Int>0Light level of a fake light block above the entity's head (0 disables)
hitboxesList<BoneHitbox>emptyList of custom hitboxes attached to bones
BoneHitbox(7)
字段类型默认值描述
boneNameString——
widthFloat0.5—
heightFloat0.5—
scaleFloat1.0—
offsetXDouble0.0—
offsetYDouble0.0—
offsetZDouble0.0—
nameOffsetDouble2.3Y offset for the name display above the entity. Use this to adjust the text display height.
showDisplayNameBooleantrueWhether to show the display name above the entity
segmentsList<BetterModelEntityRecordedSegment>empty—
BetterModelEntityRecordedSegment(4)
字段类型默认值描述
startFrameInt0—
endFrameInt0—
artifactRef<EntityCinematicArtifact>—The artifact for the recorded interactions data
animationsList<BetterModelAnimationSegment>empty—
BetterModelAnimationSegment(2)
字段类型默认值描述
frameInt0—
animationString——
TypeWriter 通用字段(criteria)
字段类型默认值描述
criteriaList<Criteria>empty—

How to use it​

Set definition to a BetterModel Definition and add segments. Each segment points to an artifact (a recorded movement of an entity, made in the entity cinematic recording tool) and can trigger animations: a list of frame and animation pairs. The model follows the recorded position and pose and plays the animations at the given frames. Jumping more than 5 frames in the timeline respawns the model.