SpigotMC / BungeeCord

BungeeCord, the 6th in a generation of server portal suites. Efficiently proxies and maintains connections and transport between multiple Minecraft servers.
https://www.spigotmc.org/go/bungeecord
Other
1.57k stars 1.1k forks source link

BaseComponent support to itemmeta display name and lore #2974

Open BehrRiley opened 3 years ago

BehrRiley commented 3 years ago

I created an issue on SPIGOT-6169 on spigot directory but I was relayed here with this comment:

Spigot is using BungeeCord Chat for chat components. So please use the BungeeCord issue tracker at: https://github.com/SpigotMC/BungeeCord/issues

Just looking to add BaseComponent support to itemmeta display name and lore please - 1.16 introduces font properties that can be used and this is required for it to work properly

an example of using this with minecraft vanilla commands would be to use this command:

/give @p stone{display:{Lore:['[{"text":"\\u0010","font":"directory:filename"}]']}} 1

the font file would be located in the resource pack saved at assets/directory/font/filename.json

with this font profiler:

{ "type": "bitmap", "file": "directory:font/image.png", "ascent": -7, "height": 16, "chars": [ "\u0010" ] }

with an image named image.png saved in a resource pack at the directory assets/directory/textures/font/image.png

this is ideal because it allows us to infinitely expand the pallet of fonts without overwriting the primary default minecraft:default font

BehrRiley commented 3 years ago

wait, no it is a spigot issue it is not a bungee chat api issue it is a spigot issue - the chat api isn't relevant the fact that spigot isn't using it there is the problem - my bad. going back to my original ticket.

Janmm14 commented 3 years ago

spigot is not using it because spigot is based on mojang's server. The bungeecord chat api should be able to parse everything the mojang server deems as valid, so in the end, i think its bungeecord chat api problem