Skip to main content

Player model

system:player

Renders the player model given by the context, with controllable facing, scale and mouse following.

Nodes are written into the body or children of a resource pack card template. Besides their own fields, all nodes share id, style, when, unless and repeat; see Common node fields.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—system:player
playerStringno"{{player_id}}"Vanilla player predicate; in the player model node it is a player UUID parameter.
follow_mouseBooleannofalseWhether the player model rotates to follow the mouse.
yawNumberno15.0Horizontal facing when not following the mouse, in degrees.
pitchNumberno0.0Pitch when not following the mouse, in degrees.
scaleNumberno1.0Model scale factor; must be positive.
offset_xNumberno0.0Offset along the X axis.
offset_yNumberno0.0Offset along the Y axis.

JSON example​

{
"type": "system:player",
"player": "{{player_id}}",
"follow_mouse": false,
"yaw": 15,
"scale": 1
}

Placed in the body of a card template or the children of a container. Placeholders come from server snapshots and client build events; changing only the JSON does not produce the missing data or business handlers.

Java entry point​

com.iafenvoy.system.screen.card.node.media.PlayerNode. This page is based on the Codec in the current 26.1.2 source.