# Player head (Opening the GUI)

## Getting the head

First, we'll need to create a custom player head, which can be accomplished with the command below.

#### ≥1.13

```
$ /minecraft:give @s minecraft:player_head{SkullOwner:"{Player}"}
```

#### ≤1.12

```
$ /minecraft:give @p minecraft:skull 1 3 {SkullOwner:"{Player}"}
```

Once we have the head, we can add it to our GUI. This **must** be done in the GUI button overview (Screenshot below)

![](/files/-M_pvpJh-XQ6KTmp8LKK)

In this view, you must press the head you just obtained from your inventory. When someone opens the GUI, it will display their head.

{% hint style="danger" %}
To all **1.8.8** user&#x73;**!** You need to **rename** the head in an anvil
{% endhint %}

{% hint style="success" %}
We are now finished and can launch our GUI
{% endhint %}


---

# Agent Instructions: 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://guides.ultracustomizer.com/guis/custom-buttons/player-head-opening-the-gui.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.
