# AdvancedHeads

AdvancedHeads is a plugin, enabling you to select custom Minecraft skulls from over **50,000** heads in our database. Players are able to use these heads to decorate their builds, inspire others or make unique contraptions.

* **Custom Heads \[50,000+ Available]**
  * This plugin provides over 50 thousand custom player heads to choose from.
  * Use these heads to decorate your buildings, allow players to create amazing contraptions, furniture, etc. Possibilities are endless.
* **Purchase heads**
  * Allow players to purchase these heads from built-in shop system for prices set in configuration (global or per-category pricing is possible)
  * Plugin also has a feature to change head you are looking at to a different head (preview gif available under screenshots below)
* **Searching & Favorites**
  * Players are able to search between all the thousands of heads quickly. Search for a keyword, name, id - anything you can think of.
  * Set heads as favorites and find them in the 'favorites' section of menu. This is permissions-based, and could be a good donators feature.
* **Extremely Configurable**
  * Configure all menus, messages, settings
  * Commands are also fully configurable - change the actual command, aliases, permissions & more
* **Extensive Wiki and huge community**
  * Visit our AdvancedHeads Wiki to learn more about this plugin.
  * Join our 5,000+ members [Discord Server](https://advancedplugins.net/discord) if you need assistance.


# 50,000+ Heads

## What does the plugin offer

Over 40 thousand of heads are available in this plugin. Players can purchase these heads in-game for your defined currency.

## Custom Heads Examples

![Used to make a wagon more realistic](https://i.imgur.com/piYrG2p.png)

Or, can be used in GUI menus:

<figure><img src="https://467242566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcUZOC7MVe57NTMCXBAPJ%2Fuploads%2FvQeaTCnLJcNi0rdsIF9D%2Fimage.png?alt=media&amp;token=2ae72196-a376-4975-9f00-fd8daa619dd9" alt=""><figcaption></figcaption></figure>

![Something as simple as just adding heads onto shelves makes the feeling more realistic](https://i.imgur.com/o1KyGMe.png)

And more examples:

![](https://i.imgur.com/7ACdDLp.png)

![](https://i.imgur.com/XaseLK3.png)

![Can be used together with armor stands as well!](https://i.imgur.com/InxxQnV.png)


# Supported Plugins

List of officially supported plugins

### Our Plugins, which officially support AdvancedHeads:

* [**AdvancedEnchantments** ](https://advancedplugins.net/item/AdvancedEnchantments.1)- <https://wiki.advancedplugins.net/configuration/config-items>
* [**BattlePass** ](https://advancedplugins.net/item/BattlePass.11)- <https://wiki.advancedplugins.net/configuration/config-items>
* [**AdvancedPets** ](https://advancedplugins.net/item/AdvancedPets.27)- <https://wiki.advancedplugins.net/configuration/config-items>

How to use custom heads in our plugins?

Define `advanced-heads` value for items in configuration, then those items will automatically use custom heads from AdvancedHeads plugin. Example:

```yaml
item:
  advanced-heads: 20
  name: 'Custom Head!'
```

This will automatically use custom head texture, with id of 20, from AdvancedHeads and integrate it into our plugin GUIs.&#x20;

How to find head IDs:             \
<https://heads.advancedplugins.net/usage/find-custom-head-id>

Full explanation of how our items are formatted: <https://wiki.advancedplugins.net/configuration/config-items>

### External plugins, which support AdvancedHeads:

Read our guide: [How to use in plugins](/information/how-to-use-in-plugins)


# How to use in plugins

Guide on how to use this plugin in most popular plugins

You can use any head from AdvancedHeads database in other plugins. You will need the "base64" value of it.&#x20;

### How to get base64 from any advanced head

Hold that head in your hand and run command `/ahd info`. You will be able to see information about this head - the name, ID and base64.

<figure><img src="https://467242566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcUZOC7MVe57NTMCXBAPJ%2Fuploads%2FQ3fZnvS70fdMYSb0cRBM%2Fimage.png?alt=media&amp;token=9aaea4e8-98b2-49a1-9a81-92e7f12c6848" alt=""><figcaption></figcaption></figure>

Click on `Base64`, you will be able then to copy the value by clicking CTRL+A, then CTRL+c (CTRL will be Command button in MacOs). Now that you have the Base64, let's learn how to use it in other plugins.

### DeluxeMenus

Set `material: basehead-<value>` ,\<value> to base64m e.g. from the head above

`material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjBlYjY0NzcxMzY0Y2M1NDY5ZThjNWVhNmEzYWQ1ZDgyYmIyZTdlYjU3MjFkY2Y5OGIzNDI0Mzc5MWM2Y2I3In19fQ==`\
This will set the displayed GUI item to any head you want.

Link to their Wiki explanation: <https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/item#material>

### ShopGUI+

Set skin's value to the base64 value we already have. Here's an example:

{% code overflow="wrap" lineNumbers="true" %}

```yaml
item:
  material: PLAYER_HEAD
  quantity: 1
  skin: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjBlYjY0NzcxMzY0Y2M1NDY5ZThjNWVhNmEzYWQ1ZDgyYmIyZTdlYjU3MjFkY2Y5OGIzNDI0Mzc5MWM2Y2I3In19fQ==
```

{% endcode %}

Link to their Wiki explanation: <https://docs.brcdev.net/#/item-meta?id=_113-2>

### Other plugins

Other plugins will have similar ways of using our heads within their own. If you have questions visit our [Discord server](https://advancedplugins.net/discord) where we will help you set it up.


# Find Custom Head ID

How to use integrations of head IDs with other plugins.

Each custom head has their own unique Head ID. It's displayed next to every head in the GUI, an example:

![](https://467242566-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcUZOC7MVe57NTMCXBAPJ%2Fuploads%2FkINjJHYYfpEKOOl5sRMn%2Fimage.png?alt=media\&token=0bf6bf7f-99a5-41d6-b910-6db58310884c)

This means, using Head ID `619` in supported plugins, would turn that item into a Pufferfish head.

### You can find all supported plugins here: [Supported Plugins](/information/supported-plugins)


# Adding support with API

Guide on how to add support to our heads using the API

Adding support is very easy! It's as simple as allowing players to input their desired custom head id and loading the head item from our API.

### 1. Add `AdvancedHeads` as a soft dependency into your plugins.yml file

{% code title="plugin.yml" %}

```yaml
softdepend: [AdvancedHeads]
```

{% endcode %}

### 2. Example integration into a config file:

{% code title="config.yml" %}

```yaml
item:
  advancedHeads: 222
```

{% endcode %}

### 3. Now, onto the loading part from code:

{% code title="Main.java" %}

```java
ItemStack customHead = AdvancedHeadsAPI.getHead(getConfig().getInt("item.advancedHeads));
```

{% endcode %}

### 4. The result

Now you have an itemstack, which looks like this in-game:

![](https://i.imgur.com/zjDejoT.png)


# Commands and Permissions

Give access to all player-based commands using advancedheads.\* permission

<table><thead><tr><th width="174.03099438409444">Permission For</th><th width="268.9330296405446">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/heads</td><td>Open Heads Menu</td><td>advancedheads.menu</td></tr><tr><td>/heads search &#x3C;query></td><td>Search for heads</td><td>advancedheads.search</td></tr><tr><td>/heads info</td><td>Get information about held head</td><td>advancedheads.info</td></tr><tr><td><strong>User Help Menu</strong></td><td>View all user commands in-game</td><td>advancedheads.help</td></tr><tr><td><strong>Categories</strong></td><td>Access to categories in main menu</td><td>advancedheads.menu.&#x3C;category name></td></tr><tr><td><strong>Favorites</strong></td><td>Access to favorites menu and adding heads to favorites</td><td>advancedheads.favorites</td></tr><tr><td><strong>Switch Skulls</strong></td><td>Switch to different skull using 'change head' feature in menus</td><td>advancedheads.switch</td></tr></tbody></table>

Give access to all admin-based commands using advancedheadsadmin.\* permission

<table><thead><tr><th width="150"></th><th width="150"></th><th></th></tr></thead><tbody><tr><td>/heads reload</td><td>Reload all configuration</td><td>advancedheadsadmin.reload</td></tr><tr><td>/heads give &#x3C;user> &#x3C;head id> [amount]</td><td>Give heads to player</td><td>advancedheadsadmin.give</td></tr><tr><td><strong>Admin Help Menu</strong></td><td>View all admin commands in-game</td><td>advancedheadsadmin.help</td></tr></tbody></table>


