Using it

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.

KeyDefaultMeaning
materialCARVED_PUMPKIN for hats, STICK otherwiseAny item. Blocks and mob heads work without a resource pack
custom-model-datanoneNumber from your resource pack
item-modelnone"namespace:name" item model from your resource pack
custom-itemnone"nexo:id", "itemsadder:namespace:id" or "oraxen:id"
texturenoneBase64 head texture (material must be PLAYER_HEAD)
scale0.7 for hats, 1.0 otherwiseSize multiplier
x, y, zdepends on typeOffset from the feet: x to the player's right, y up, z forward
yaw-offset0Rotate the model in degrees
transformHEAD for hats, FIXED otherwiseHEAD, FIXED, GROUND or NONE
glowfalseFullbright, ignores the light level
mirrorfalseTwo displays, the left one mirrored. Use it for a model of one wing
spread20 for wings (mirror only)Degrees each wing is turned outward
flaptrue for wingsAnimate the wings
flap-angle14How far the wings swing (degrees)
flap-period24Ticks for one flap