Skull Texture ‐ Custom Data - DerFrZocker/Custom-Ore-Generator GitHub Wiki

Skull Texture Custom Data

The SKULL_TEXTURE custom data allows you to set the texture of a player head. This is useful for generating custom decorative blocks or unique mob drops.

  • Name: SKULL_TEXTURE
  • Type: String (Base64 encoded JSON)
  • Applicable Materials:
    • Minecraft 1.13+: PLAYER_HEAD, PLAYER_WALL_HEAD
    • Older versions: SKULL

Usage

To set the SKULL_TEXTURE custom data, you provide a Base64 encoded JSON string. This JSON typically contains a textures field with a SKIN property, which in turn has a url field pointing to the skin texture.

Important: You can obtain Base64 encoded skull textures from various online tools or Minecraft skin databases. Ensure the provided string is correctly encoded.

Example

To generate a player head with a custom texture (replace <base64_encoded_json> with your actual Base64 string):

/oregen set customdata my_custom_head SKULL_TEXTURE "<base64_encoded_json>"

A typical Base64 encoded JSON string might look something like this (decoded for clarity):

{
  "textures": {
    "SKIN": {
      "url": "http://textures.minecraft.net/texture/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
  }
}