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.).
Campos
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
cosmetic | Ref<CosmeticDefinitionEntry> | — | Reference to the cosmetic definition to display on this entity |
offsetOverride | Vector? | — | Override the offset position for this specific entity attachment |
rotationOverride | Vector? | — | Override the rotation offset for this specific entity attachment |
rotationModeOverride | RotationMode? | — | Override the rotation mode for this specific entity attachmentValores:RELATIVE_TO_BODYRELATIVE_TO_HEADFIXED |
Campos comunes de TypeWriter (priorityOverride)
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
priorityOverride | Optional<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.