Hats, wings and backpacks
Hats, wings and backpacks are item display entities that follow the player's body. The model: block says what is shown and where. A pet in DISPLAY mode uses the same block.
model:
material: PAPER
custom-model-data: 1001 # or item-model: "myserver:crown"
scale: 1.0
y: 2.0
If a model sits too high or low, change y (the top of a player's head is about 1.8). If it faces the wrong way, use yaw-offset.
| Key | Default | Meaning |
|---|---|---|
| material | CARVED_PUMPKIN for hats, STICK otherwise | Any item. Blocks and mob heads work without a resource pack |
| custom-model-data | none | Number from your resource pack |
| item-model | none | "namespace:name" item model from your resource pack |
| custom-item | none | "nexo:id", "itemsadder:namespace:id" or "oraxen:id" |
| texture | none | Base64 head texture (material must be PLAYER_HEAD) |
| scale | 0.7 for hats, 1.0 otherwise | Size multiplier |
| x, y, z | depends on type | Offset from the feet: x to the player's right, y up, z forward |
| yaw-offset | 0 | Rotate the model in degrees |
| transform | HEAD for hats, FIXED otherwise | HEAD, FIXED, GROUND or NONE |
| glow | false | Fullbright, ignores the light level |
| mirror | false | Two displays, the left one mirrored. Use it for a model of one wing |
| spread | 20 for wings (mirror only) | Degrees each wing is turned outward |
| flap | true for wings | Animate the wings |
| flap-angle | 14 | How far the wings swing (degrees) |
| flap-period | 24 | Ticks for one flap |