Skip to content

Unable to set the item name of player heads. #13613

@BoskoVojinovic

Description

@BoskoVojinovic

Expected behavior

The following code:

ItemStack item = ItemStack.of(Material.PLAYER_HEAD,1);
PlayerProfile profile = new CraftPlayerProfile(null,null);
profile.setProperty(new ProfileProperty("textures",texture));
item.editMeta(SkullMeta.class,m->{
   m.setPlayerProfile(profile);
   m.itemName(name);
});

Should produce a playerhead of custom base64 texture, and a custom item name(not the former "DisplayName" in italics).

Observed/Actual behavior

The resulting player head has the correct texture, but the call to meta.itemName is completely ignored, and the name defaults back to "'s head" since no profile name is actually set.

Steps/models to reproduce

Run the code from the Expected behaviour section, and give yourself the resulting ItemStack.

An example base64 texture to use:
eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzk5YWQ3YTA0MzE2OTI5OTRiNmM0MTJjN2VhZmI5ZTBmYzQ5OTc1MjQwYjczYTI3ZDI0ZWQ3OTcwMzVmYjg5NCJ9fX0=

Plugin and Datapack List

No other plugins
No datapacks

Paper version

This server is running Paper version 1.21.11-110-main@c59990d (2026-02-06T11:11:01Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.11-101-57c7aac (MC: 1.21.11)

Other

PS:

  • Setting the name in a separate editMeta block after the profile-setting one produces the same behaviour.
  • The UUID of the profile has no effect.
  • The order of operations between setting the profile and name seems to have no impact.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions