跳到主要内容

Cosmetic Entity Data

Attach cosmetics to an entity definition

EntityData entry that allows attaching cosmetics to entity definitions. Can be used with EntityExtension entities or BetterModel entities to display cosmetics attached to them (like backpacks, wings, halos, etc.).

字段

字段类型默认值描述
cosmeticRef<CosmeticDefinitionEntry>—Reference to the cosmetic definition to display on this entity
offsetOverrideVector?—Override the offset position for this specific entity attachment
rotationOverrideVector?—Override the rotation offset for this specific entity attachment
rotationModeOverrideRotationMode?—Override the rotation mode for this specific entity attachment可选值:RELATIVE_TO_BODYRELATIVE_TO_HEADFIXED
TypeWriter 通用字段(priorityOverride)
字段类型默认值描述
priorityOverrideOptional<Int>——

How to use it​

Add this to an entity definition (an NPC, for example) to show a cosmetic on it. cosmetic points to the definition, and the override fields replace its offset, rotationOffset and rotationMode for this entity only.