Holographic Displays

Holographic Displays

3M Downloads

Can I Use Headdatabase On Floating Items?

Inxity opened this issue ยท 8 comments

commented

What are you trying to do?

I want to use custom player heads in floating items on HeadDatabase plugin

What have you tried so far?

I didnt try anything because i dont know how to

Platform

  • Server version (output of /version): Paper version git-Paper-246 (MC: 1.16.3)
  • Holographic Displays version (check with /hd): v2.4.5
  • ProtocolLib version, if installed (check with /protocol version): ProtocolLib v4.6.0-SNAPSHOT-b483
  • Do you use plugins to allow players to join with multiple Minecraft versions (such as ViaVersion, ProtocolSupport, ...): No

Additional context

commented

How did you do it slimedog, can you send me an example?

commented

This works for me

  - 'ICON: player_head {display:{Name:"{\"text\":\"Lucky Block (black)\"}"},SkullOwner:{Id:[I;-1688224818,1383745880,-1239035256,-527351002],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzdiMTg3ZTM4YjQwN2ZlYWJhZjE5MDg3OWQ5OGE2N2Y0YzcwNTJmMzIwMWY3MmU0NDU3MWY1MzdlYTg5ZDRjNyJ9fX0="}]}}}'

As filoghost noted above, if the /give ... command works, you have the right data. Manually enter it into database.yml.

commented

ty a lot

commented

You already can, if you know how to use NBT data: https://filoghost.me/docs/holographic-displays/icons (last section)

commented

I think this may be in the suggestion class

commented

Spigot 1.16.5-3069
HD 2.4.6

I have tried, for example:

lobby-lucky:
  location: world_lobby, 142.25, 6.4, 134.0
  lines:
  - '&e&lLUCKYBLOCK'
  - 'ICON: player_head {display:{Name:"{\"text\":\"Lucky Block (black)\"}"},SkullOwner:{Id:"9b5fbbce-527a-4958-b625-d288e0914326",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzdiMTg3ZTM4YjQwN2ZlYWJhZjE5MDg3OWQ5OGE2N2Y0YzcwNTJmMzIwMWY3MmU0NDU3MWY1MzdlYTg5ZDRjNyJ9fX0="}]}}}'

based on this head: https://minecraft-heads.com/custom/decoration/44208-lucky-block-black

The default player head is displayed. There are no errors, in-game or at console, but obviously I am not getting the NBT right. Please advise. Maybe add something like this as an example in the FAQ, and a similar example of Minecraft-URL texture usage:

Minecraft-URL (http://textures.minecraft.net/texture/...): 
c7b187e38b407feabaf190879d98a67f4c7052f3201f72e44571f537ea89d4c7

which would be something like:

  - 'ICON: player_head {display:{Name:"{\"text\":\"Lucky Block (black)\"}"},SkullOwner:{Id:"9b5fbbce-527a-4958-b625-d288e0914326",Properties:{"textures":{"SKIN":{"url":"http://textures.minecraft.net/texture/c7b187e38b407feabaf190879d98a67f4c7052f3201f72e44571f537ea89d4c7"}}}}}'
commented

Rule of thumb: if it works with the vanilla /give command, it will also work for icons. Also, the website you linked is working for me in 1.16.5, but since the command is too long I had to manually edit database.yml.

commented

That was the issue. It works fine, if I get all the bits. Thanks.