flytegg / mc-utils

Community powered Minecraft utilities for developers, builders and players.
https://mcutils.com
28 stars 16 forks source link

Change ChatColor.translatexxx to use other symbols or other methods #129

Open Dawsson opened 1 year ago

Dawsson commented 1 year ago

image

Cant we just use the "§" symbol without translate?? Not sure if this works or not

What if we add a section where you can specify a method which translates it such as format(String text) and it uses that method instead of translate

Dawsson commented 1 year ago

also what if we give a warning saying you need to select a block first? or maybe just a default block??

MLGPenguin commented 1 year ago

You could yeah use something like .replaceAll("(?i)&[0-9a-fk-orx]", "§"); instead of translateAlternates

Edit: sorry you'd need a matcher or something to just replace the & part of it