Skip to content

Head

Information
Type Entity Function
Namespace moxlib:api/helpers/player/head
Versions 1.17+

Overview

Gets the executing player's head as an item, and stores it in output.

Example

execute as Steve run function moxlib:api/helpers/player/head
Output of storage moxlib:api/helpers/player/head
{
  output: {
    id:"minecraft:player_head",
    tag:{
      SkullOwner: {
        Id:[I; <uuid here...>],
        Properties:{
          textures:[
            {
              Value:"<base64 texture here...>",
              Signature:"<base64 signature here...>"
            }
          ]
        },
        Name: "Steve"
      }
    },
    Count:1b
  }
}

API

Returns

A player_head item object, with the player's head data. More info.