Skip to content

Add Minimessage or SkBee Text Component Support to Titles #199

@BenguMC

Description

@BenguMC

Description

I would like to use custom fonts in titles. Either by adding direct support of mini message, or hooking into SkBee's text component system, I could use these in titles.

I played around with Skript Reflect, and I got this working in a vanilla inventory:

`command /testfontgui3:
trigger:
set {_mm} to MiniMessage.miniMessage()
set {_component} to {_mm}.deserialize("font:minecraft:row_6Abc")
send serialized json string of {_component} to player

    # Create inventory directly with Bukkit
    set {_inv} to Bukkit.createInventory(null, 54, {_component})

    # Add a test item
    set slot 0 of {_inv} to diamond named "Test Item"

    # Open to player
    player.openInventory({_inv})

`

Unfortunately setting the name with this method breaks all functionality of skript-gui. Fonts would allow me to move text vertically, which allows for some very robust creations. I thank you for your time in reading this ^.^

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions