> For the complete documentation index, see [llms.txt](https://docs.samscreations.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samscreations.eu/samshead/guides/placeholders.md).

# Placeholders

## Placeholders

SamsHead provides highly flexible placeholders to render avatars and full player busts anywhere text is supported.

***

## Avatar Head Syntax

The format follows: `%samshead_avatar_<size>[_layer][_border_RRGGBB][_<player>]%`.

#### 1. Size Presets <a href="#id-1-size-presets" id="id-1-size-presets"></a>

Choose from `small`, `medium`, `normal`, `large`, or `giant`.

#### 2. Layers (Optional) <a href="#id-2-layers-optional" id="id-2-layers-optional"></a>

* `face`: Only the base skin layer.
* `head`: Skin + Hat/Overlay layer (Default).

#### 3. Framed Avatars (Borders) <a href="#id-2-layers-optional" id="id-2-layers-optional"></a>

You can now add a 1-pixel colored border around any avatar. This uses a specialized 10x10 glyph set to ensure the head remains clean.

* Syntax: `border_<RRGGBB>`
* Example: `%samshead_avatar_medium_border_ff0000%` (Red border)

#### 4. Target Player (Optional) <a href="#id-3-target-player-optional" id="id-3-target-player-optional"></a>

If omitted, the placeholder targets the player viewing it.

{% tabs %}
{% tab title="Personalised" %}
`%samshead_avatar_medium%` Displays the viewer's own head (default layer).
{% endtab %}

{% tab title="Specific Player" %}
`%samshead_avatar_normal_Notch%` Displays Notch's head.
{% endtab %}

{% tab title="Borders & Layers" %}
`%samshead_avatar_large_head_border_ffd700_Notch%` Displays Notch's head with a gold border.
{% endtab %}

{% tab title="Layer Override" %}
`%samshead_avatar_giant_face_Sam1qk_%` Displays Sam1qk\_'s face only (no hat) in giant size.
{% endtab %}
{% endtabs %}

***

## Player Bust Syntax

Busts render a 32×32 Minecraft-style display including the head, body, and arms.

{% hint style="warning" %}

#### Scoreboard/TAB Safety

Bust placeholders are **NOT** safe for Scoreboards, TAB rows, or Nametags. They generate long text strings that can cause client kicks due to packet length limits. Use them in Chat, Holograms, or GUIs only.
{% endhint %}

Format: `%samshead_bust_<size>_<player>%`

#### Available Bust Sizes <a href="#id-1-size-presets" id="id-1-size-presets"></a>

| Preset | Pixel Size |
| ------ | ---------- |
| small  | 1          |
| medium | 2          |
| normal | 2          |
| large  | 3          |
| giant  | 4          |

{% hint style="success" %}

#### SkinsRestorer

SamsHead is fully compatible with SkinsRestorer. It will automatically detect skin changes and update the rendered avatar instantly.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.samscreations.eu/samshead/guides/placeholders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
