Player head (Opening the GUI)

In this guide, you'll learn how to make a button with the player's head that opens 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)

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

Last updated

Was this helpful?