Skip to content

Instantly share code, notes, and snippets.

@DJStompZone
Created May 18, 2026 08:51
Show Gist options
  • Select an option

  • Save DJStompZone/1cc3f2dc57f346d5a44c788d62818d1d to your computer and use it in GitHub Desktop.

Select an option

Save DJStompZone/1cc3f2dc57f346d5a44c788d62818d1d to your computer and use it in GitHub Desktop.
Minecraft Styles JSON Schema
{
"$schema": "https://json-schema.org",
"title": "MinecraftFormattingCodes",
"description": "A collection of Minecraft color and text style formatting codes with matching hex values and ANSI escape sequences.",
"type": "object",
"required": ["color", "style"],
"additionalProperties": false,
"properties": {
"color": {
"type": "array",
"description": "List of color formatting codes.",
"items": {
"type": "object",
"required": ["code", "color", "hex", "ansi"],
"additionalProperties": false,
"properties": {
"code": {
"type": "string",
"description": "The Minecraft formatting code token.",
"pattern": "^§[0-9a-v]$"
},
"color": {
"type": "string",
"description": "The lowercase descriptive name of the color."
},
"hex": {
"type": "string",
"description": "The 6-digit hex color string including the hash symbol.",
"pattern": "^#[0-9A-Fa-f]{6}$"
},
"ansi": {
"type": "string",
"description": "The escaped ANSI terminal text formatting string."
}
}
}
},
"style": {
"type": "array",
"description": "List of text style modifier formatting codes.",
"items": {
"type": "object",
"required": ["code", "style", "ansi"],
"additionalProperties": false,
"properties": {
"code": {
"type": "string",
"description": "The Minecraft styling code token.",
"pattern": "^§[k-r]$"
},
"style": {
"type": "string",
"description": "The lowercase description of the text decoration style."
},
"ansi": {
"type": "string",
"description": "The escaped ANSI terminal text decoration string."
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment