BentoBox icon indicating copy to clipboard operation
BentoBox copied to clipboard

1.21.8 & 1.21.10, Player Head

Open chatillon7 opened this issue 1 month ago • 3 comments

Expected behavior

I've tried two methods to change item's custom model data and both of them didn't work. First one is: minecraft:player_head[minecraft:custom_model_data={floats:[1]}] Last one is: PLAYER_HEAD:CMD-1 And I'm only getting this problem in player_heads for now, the other items work well.

Server Ver: [11:07:21 INFO]: This server is running Paper version 1.21.8-60-main@29c8822 (2025-09-06T21:49:13Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT) You are running the latest version

BentoBox Ver: [11:07:24 INFO]: BentoBox version 3.10.0 Highly scalable and customizable Minecraft Spigot plugin that enables you to run island-type gamemodes. Website: https://bentobox.world/ Authors: tastybento, and Poslovitch Contributors: The BentoBoxWorld Community

Observed/Actual behavior

Non modified item

Steps/models to reproduce

Edited warps_panel.yml Reloaded BentoBox Executeed /[gamemode] warps

BentoBox version

BentoBox version 3.10.0 Highly scalable and customizable Minecraft Spigot plugin that enables you to run island-type gamemodes. Website: https://bentobox.world/ Authors: tastybento, and Poslovitch Contributors: The BentoBoxWorld Community

Plugin list

No response

Other

Image Image

chatillon7 avatar Nov 25 '25 16:11 chatillon7

With the Warps addon, if the warp button icon is defined as a PLAYER_HEAD then it is automatically converted to the player head of the owner of the island. There is a lookup to one of the head's databases and that is then turned into the player's skin head. There's no other way to customize it, sorry. If the icon is changed to something else, e.g. a sign, then that will be used as is.

What is it that you are trying to do?

tastybento avatar Nov 26 '25 16:11 tastybento

I'm tryna customize the player's skin head's custom model data for all. For example: In the player's inventory slot item is PLAYER_HEAD:CMD-1 (custom model data is float 1) but in Warp GUI it has no custom model data so it uses his fallback PLAYER_HEAD model: Image

It is not possible to change the Warp GUI's player_head's custom model data. I'd like to be able to change it.

chatillon7 avatar Nov 27 '25 17:11 chatillon7

@tastybento I implemented the ability to preserve custom data for player heads. However, every place where panel item is created as head, we need to adjust code:

https://github.com/BentoBoxWorld/Warps/blob/6a558d59e6c5bb10c52763b33dfbc8ec525a919e/src/main/java/world/bentobox/warps/panels/WarpsPanel.java#L425-L428

Should be changed with new panel item builder method:

            if (template.icon().getType().equals(Material.PLAYER_HEAD))
            {
                builder.icon(ownerName, template.icon());
            }

BONNe avatar Nov 27 '25 19:11 BONNe