promotional bannermobile promotional banner
premium banner
A mod/api to make custom text/holograms/ui with custom fonts

Description

TextUtils allow you to make custom floating texts utilizing custom fonts and sizes, it can be used as a standalone mod or as a library for other mods

It works by automatically making atlases of Unicode fonts based on the block that you pre-generate and then spawn them as entities

> Note:
> I'm reworking the code to make it usable as library

 

> Warning:
> Some Unicode block like "cjk" might take a long time to load it contains 20000+ glyphs so the initial loading might result in some freeze

 

To use it in Standalone you need to add your ttf or otf font in the mods/TextUtils_TextUtils/fonts folder

Getting Started

Start by using '/font' and follow the instructions

Main Commands

(<>: required, []: optional need "--")

/font

  • list
  • init <font file> [id] [size]
  • range <font id> <unicode block separated by ",">
  • customrange <font id> <custom range name> <block start> <block end>
  • remove <font id>

/text3d

  • new <position> <text> [id] [font_id] [rotation] [size]
  • list
  • edit <id> <text>
  • editline <id> <text> <line>
  • font <id> <font id>
  • remove <id>
  • hide <id>
  • show <id>
  • move <id> <x> <y> <z>
  • resize <id> <size>
  • track <id> (while looking at an entity)

/text2d

  • page <text> <font> [size]

Formatting

Textutils support simple color formatting like this:

exemple of {blue}color{\\blue} formatting

(the double '\' is required)

Colors

  • yellow
  • light_blue
  • blue
  • dark_blue
  • white
  • aqua
  • lime
  • red
  • orange
  • purple
  • pink
  • green
  • brown
  • beige
  • grey
  • black