/simpletextformatting

Use formatting codes in anvils and books

Primary LanguagemcfunctionMIT LicenseMIT

Simple Text Formatting (1.20+)

Description

Use formatting codes in anvils and books

Installation

Once the data pack is installed, type /reload in-game to load all data pack assets.

The data pack can be disabled in-game using the command /function stf:uninstall, whereafter the contents can be removed from the data packs folder.

Usage

Using formatting codes in anvils

Formatting codes (see below) can be applied to item name text when renamed in anvils. Text formatting is updated when the item is placed in the player's inventory.

Using formatting codes in writable books

Formatting codes (see below) can be applied to book text when entered in writable books. Text formatting is updated when the book is signed by the player.

Formatting codes

Text can be formatted using the ampersand sign (&) followed by any of the following codes:

Code Color
0 black
1 dark_blue
2 dark_green
3 dark_aqua
4 dark_red
5 dark_purple
6 gold
7 gray
8 dark_gray
9 blue
a green
b aqua
c red
d light_purple
e yellow
f white
k obfuscated
l bold
m strikethrough
n underline
o italic
r reset

Credits

See CREDITS.txt

License

MIT