This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Description
Minecraft uses many different styling options for chat, signs, and other places such as §a for green text. Because you cannot easily interpret the style represented by the code a script could be added that supports a markup syntax in files which could look like this:
// using mcmarkup
{
"format_version": 1,
"message": "Hello <red>from <green>My World</green>!</red>"
}
This would tranlsate to:
{
"format_version": 1,
"message": "Hello §cfrom $aMy World§r§c!§r"
}
The configuration file could look something like this:
[scripts]
pre = [
# ...
{
run = "mcmarkup",
with = "ruby",
args = [
"-identifier", "// using mcmarkup",
"-t", "epic=5l", # uses §5 (purple) and §l (bold)
"-t", "red=4", # override built-in tags
]
}
]