1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Minecraft font to Unicode font converter.

Discussion in 'Snippets' started by Dovias, Feb 13, 2020.

  1. Dovias

    Dovias Member

    Joined:
    Dec 8, 2019
    Messages:
    6
    Likes Received:
    0
    Before:
    [​IMG]

    After:
    [​IMG]



    Have you ever wondered how to get unique fonts in to your minecraft server?
    Well this is now possible! Here's minecraft font to unicode font converter, which converts minecraft mapped font letters to unicode ones without having a hassle to convert texts by yourself using an online text generator! Add this at the top of your .sk file or create a new one!


    Requires:
    1. Skript version that's compatible with skript-mirror.
    2. skript-mirror addon.

    Code (Text):
    1. import:
    2.     java.lang.String
    3.     java.lang.StringBuilder
    4.  
    5. expression convert minecraft font %string% to unicode font:
    6.     get:
    7.         set {_unicodefont::*} to ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") split at ""
    8.         set {_minecraftfont::*} to ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") split at ""
    9.  
    10.         set {_minecraftstring::*} to expression-1 split at ""
    11.         set {_minecraftstringsize} to size of {_minecraftstring::*}
    12.         remove {_minecraftstring::%{_minecraftstringsize}%} from {_minecraftstring::*}
    13.         loop {_minecraftstring::*}:
    14.             if {_minecraftfont::*} doesn't contain loop-value-1:
    15.                 add loop-value-1 to {_converted::*}
    16.                 continue
    17.             loop {_minecraftfont::*}:
    18.                 if loop-value-2.equals(loop-value-1):
    19.                     set {_order} to loop-index-2 parsed as number
    20.                     add {_unicodefont::%{_order}%} to {_converted::*}
    21.                     continue
    22.         set {_unicodestring} to new StringBuilder()
    23.         loop {_converted::*}:
    24.             {_unicodestring}.append(loop-value-1)
    25.         return {_unicodestring}
    To change the font, you need to map the unicode letters by yourselves! To do that, you need to:
    1. Add unicode mapped symbols to {_unicodefont::*} list variable, as it shown in the custom expression.
    2. Add minecraft font alternative symbols of unicode mapped symbols to {_minecraftfont::*} list variable , as it shown in the custom expression.
    Where can I use this?
    • Pretty much everywhere. You could use this as a special perk for donators. For example you could convert text in real time and send edited font message instead of normal font message. Or you could use this as some kind of Tab list, scoreboard customization.
     
  2. PuchiGFX

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    246
    Likes Received:
    5
    upload_2020-3-3_18-31-16.png
    skript: 2.2-dev25
    skript-mirror: 0.19.1
     
  3. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,171
    Likes Received:
    180
    Update your skript-mirror version.
    Most people are using 2.0.0 as 0.19.1 is very old and outdated.
     
  4. PuchiGFX

    PuchiGFX Member

    Joined:
    Jan 26, 2017
    Messages:
    246
    Likes Received:
    5
    ill try that
    --- Double Post Merged, Mar 4, 2020, Original Post Date: Mar 4, 2020 ---
    still having that error
     
Loading...