cosmetic_definition
Define a 3D Cosmetic — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | cosmetic_definition |
| Type | Misc |
| Color | Orange |
| Icon | mdi:tshirt-crew |
Fields
| Field | Type | Description |
|---|---|---|
cosmeticId | String | Unique cosmetic identifier |
permission | String | Permission required to unlock (player must have this permission) |
priority | Int | Display priority in menu (lower = displayed first) |
category | String | Category for this cosmetic (e.g., 'Backpack', 'Hat'). Used for menu grouping. |
model | Ref<EntityDefinitionEntry> | The 3D model entity to display. |
rotationMode | RotationMode | Rotation mode for the cosmetic. |
offset | Vector | Offset from the player's position. |
rotationOffset | Vector | Rotation offset (X=Pitch, Y=Yaw, Z=Roll) applied to the cosmetic. |
particles | List<CosmeticParticleConfig> | Particle effects attached to this cosmetic. |
menuIcon | Item | Item representation in the menu. |
customData | Map<String, String> | Custom data for specific implementations. |
Usage Example
- entry: cosmetic_definition
name: "Define a 3D Cosmetic"
cosmeticId: ""
permission: ""
priority: 0
category: ""
model: ""
rotationMode: ""
offset: ""
rotationOffset: ""
particles: []
menuIcon: ""
customData: ""