- check_circle Advancements
- check_circle Functions
Published Jan 16th, 2023, 1/16/23 12:47 pm
- 6,788 views, 5 today
- 970 downloads, 0 today
22
NOTE: Updates to this datapack are no longer being tracked on this page. For an expanded version of this datapack with more features for 1.20+ see the page [HERE]
Anvil Formatting Codes
a Minecraft Datapack for versions 1.19 and higher
Description:
Allows formatting of item names in anvils using formatting codes! This provides a survival-friendly method for all players to get customized item names.Usage:
Custom text can be used when renaming items in anvils using the Ampersand sign (&) followed by a valid formatting code:Code | Name |
&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 |
Multiple formatting codes can be specified consecutively to customize text color and type (see Example 1). Unlike default Minecraft, all previous formatting types are retained throughout text (see Example 2). Consequently, formatting can be reset to default parameters using the &r code (see Example 3).
Text Entered in Anvil | Text Produced |
&d&lHello World | Hello World |
&nHello &dWorld | Hello World |
&d&l&nHello &r&dWorld | Hello World |
NOTES:
- Text interpretation occurs when the item is moved into the player's inventory. Interpretation can take multiple ticks to multiple seconds depending on server backup!
- Italic formatting on renamed items is removed by default! This replicates the functionality of Unitalicize, however, both datapacks should NOT be running in the same world
/function afc:uninstall
Credits:
This datapack utilizes 5uso's General String Parser for converting raw strings to character arrays. String parsing, interpreting, and data handling written by Oligo.
Compatibility | Minecraft 1.19 |
Tags |
tools/tracking
5828336
119
format-text-in-anvils-1-19
Create an account or sign in to comment.