MCA GUI+: Pack Authors and Theming
On this page (20)
- Modpack & Distribution Notes
- Theme Layering ( assets/mcaguiplus/gui/theme.json )
- Top-Level Schema
- conditions Object
- Sprite Object Schema
- Built-In Sprites & Alias Chains
- Sprite Alias Fallbacks
- Color Slots ( ThemeColor )
- Customizing Dock Icons & Page Labels ( pages.json & Lang)
- Dock Page Icons ( assets/mcaguiplus/gui/pages.json )
- Page Titles & Tooltip Descriptions ( lang/en_us.json )
- Stoneborn & Atlas Generator ( tools/generate_gui_theme.py )
- Copy-Pasteable Templates
- 1. Resource Pack pack.mcmeta ( 1.20.1 )
- 2. Conditional Stoneborn-Style assets/mcaguiplus/gui/theme.json
- 3. Minimal Partial Override ( assets/mcaguiplus/gui/theme.json )
- 4. Custom Dock Icons ( assets/mcaguiplus/gui/pages.json )
- 5. Language String Overrides ( assets/mcaguiplus/lang/en_us.json )
- 6. Pre-Seeded Modpack Client Config ( config/mcaguiplus-client.toml )
- World Upgrades & Safe Removal
This guide covers everything modpack authors and resource-pack creators need to bundle, configure, and visually restyle MCA GUI+.
Modpack & Distribution Notes
- Client-Only Jar: Include
mcaguiplus-0.1.0.jarin client modpack exports alongside MCA Reborn7.7+. Dedicated server packs do not need MCA GUI+ (though it usesIGNORESERVERONLYandside="CLIENT"dependencies). - Pre-Seeding Config: Because MCA GUI+ only has a
CLIENTconfig (config/mcaguiplus-client.toml), place your customized defaults directly in your pack’sconfig/folder—notdefaultconfigs/. - Datapack Status: MCA GUI+ ships zero datapack files—no recipes, item/block tags, loot tables, advancements, or worldgen JSONs.
- Resource Pack & KubeJS Overrides: All visual styling lives in
assets/mcaguiplus/. Pack makers can ship overrides either in a standard resource pack (pack_format: 15for Minecraft1.20.1) or directly insidekubejs/assets/mcaguiplus/without duplicating untouched sprites or language keys.
Theme Layering (assets/mcaguiplus/gui/theme.json)
On startup and resource reload (F3+T), GuiThemeLoader reads every assets/mcaguiplus/gui/theme.json in the resource stack from lowest priority (built-in mod resources) to highest priority (resource packs and KubeJS).
Each layer merges selectively onto lower layers:
- Sprites and colors you omit are inherited from lower layers.
- A layer can declare
"conditions"so it only applies when specific resource packs or mods are active. - Each layer’s sprites inherit that layer’s
"texture"and"texture_size"unless overridden per sprite, preventing sprites from accidentally sampling another layer’s atlas.
Top-Level Schema
| Field | Type | Default / Behavior | Description |
|---|---|---|---|
conditions |
Object (optional) |
Applied unconditionally if omitted |
Skips the entire layer unless every entry in packs_enabled is active and every mod ID in mods_loaded is loaded. |
texture |
ResourceLocation (optional) |
None |
Default atlas PNG inherited by sprites declared in this layer. |
texture_size |
[width, height] (optional) |
[256, 256] |
Default atlas pixel dimensions for sprites declared in this layer. |
sprites |
Object (optional) |
{} |
Map of sprite IDs to sprite objects (or {"remove": true} to delete an inherited sprite). |
colors |
Object (optional) |
{} |
Map of color keys to #RRGGBB, #AARRGGBB, 0xRRGGBB, or 0xAARRGGBB hex strings. |
text_shadow |
Boolean (optional) |
false in built-in vanilla theme |
Enables drop shadow on standard panel, dock, and Character Sheet text. |
stage_text_shadow |
Boolean (optional) |
true in built-in vanilla theme |
Enables drop shadow on text and badges drawn over the 3D Preview Stage. |
conditions Object
| Key | Type | Example | Rule |
|---|---|---|---|
packs_enabled |
Array of pack IDs |
["file/Runecraft Textures"] |
Every listed PackResources.packId() must be currently enabled. |
mods_loaded |
Array of mod IDs |
["townstead"] |
Every listed mod ID must be loaded via Forge ModList. |
Sprite Object Schema
| Field | Type | Default | Description |
|---|---|---|---|
uv |
[u, v, width, height] |
Required |
Source rectangle in pixels on the atlas PNG ( width > 0, height > 0). |
border |
Integer or [left, top, right, bottom] |
0 |
Nine-slice corner/edge border width in pixels ( left + right <= width, top + bottom <= height). Corners stay fixed; edges and center stretch (or repeat when tile: true). |
tile |
Boolean (optional) |
false |
Repeats edges and center using blitRepeating instead of stretching. |
texture |
ResourceLocation (optional) |
Layer’s texture |
Per-sprite atlas texture override. |
texture_size |
[width, height] (optional) |
[256, 256] if texture set on sprite, else layer’s texture_size |
Per-sprite atlas dimensions. |
remove |
Boolean (optional) |
false |
Set {"remove": true} to remove an inherited sprite from lower layers. |
Built-In Sprites & Alias Chains
Built-in atlas: mcaguiplus:textures/gui/theme/vanilla.png (256×256).
| Sprite | Built-In UV | Border | Tile | Purpose |
|---|---|---|---|---|
panel |
[0, 0, 16, 16] |
4 |
false |
Base window frame (fallback for header, details, dock) |
slot |
[17, 0, 8, 8] |
1 |
false |
Inset slot frame (Character Sheet icon slot; fallback for card, tile, scroll_track, swatch) |
stage |
[26, 0, 16, 64] |
1 |
false |
Dark 3D Preview Stage backdrop (fallback for well) |
well |
[43, 0, 16, 32] |
1 |
false |
Dark inset backdrop for white MCA/Townstead text (fallback for editor_well, narrative_well) |
field |
[60, 0, 8, 8] |
1 |
false |
Picker search input frame (unfocused) |
field_focused |
[69, 0, 8, 8] |
1 |
false |
Picker search input frame (focused) |
card |
[78, 0, 8, 8] |
1 |
false |
Character Sheet Trait card frame |
divider |
[87, 0, 8, 2] |
0 |
true |
Horizontal rule beneath panel and Character Sheet headings |
scroll_track |
[96, 0, 8, 8] |
1 |
false |
Character Sheet scrollbar track |
scroll_thumb |
[105, 0, 8, 16] |
2 |
false |
Character Sheet scrollbar thumb |
scroll_thumb_hover |
[114, 0, 8, 16] |
2 |
false |
Character Sheet scrollbar thumb when hovered or dragged |
tile |
[123, 0, 8, 8] |
1 |
false |
Page Dock, Rail, and picker catalog entry tile |
tile_hover |
[132, 0, 8, 8] |
1 |
false |
Hovered Page Dock or picker entry tile |
tile_selected |
[141, 0, 9, 9] |
3 |
false |
Active selection frame around the current Page Dock/Rail tile |
tile_current |
[151, 0, 9, 9] |
3 |
false |
Highlight frame around the currently worn picker entry |
badge |
[161, 0, 8, 8] |
1 |
false |
Pill backdrop for stage badges (height, age state, Original/Preview/Trying on) |
pedestal |
[170, 0, 48, 10] |
0 |
false |
Ground shadow ellipse beneath 3D preview entities |
meter_fill |
[219, 0, 8, 4] |
1 |
false |
Genetics meter fill bar (multiplied by colors.meter_fill) |
glyph_left |
[228, 0, 7, 9] |
0 |
false |
Natural-size left navigation arrow inside GlyphButton |
glyph_right |
[236, 0, 7, 9] |
0 |
false |
Natural-size right navigation arrow inside GlyphButton |
background (optional) |
(none built-in) |
— |
— |
When defined by a pack, drawn full-screen instead of Minecraft’s default darkened screen background |
Sprite Alias Fallbacks
If a higher-priority pack defines only generic sprites (like panel, details, slot, or well), GuiTheme walks up the alias chain (up to depth 6) automatically:
| Requested Sprite | Fallback Chain |
|---|---|
header, details, dock |
→ panel |
editor, sheet, catalog, narrative |
→ details → panel |
rail |
→ dock → panel |
editor_well, narrative_well |
→ well → stage |
card, tile, scroll_track, swatch |
→ slot |
tile_hover |
→ tile → slot |
tile_current |
→ tile_selected |
scroll_thumb_hover |
→ scroll_thumb |
field_focused |
→ field |
meter_track |
→ scroll_track → slot |
Color Slots (ThemeColor)
All 22 color keys supported under "colors" in theme.json:
| Key | Built-In theme.json |
Java Fallback | Used For |
|---|---|---|---|
title |
#404040 |
#404040 |
Top header bar page title |
subtitle |
#6B6B6B |
#6B6B6B |
Top header subtitle and Character Sheet summary line |
text |
#404040 |
#404040 |
Dock tile labels and Personality description text |
text_muted |
#6B6B6B |
#6B6B6B |
Loading status message |
heading |
#2B2B2B |
#2B2B2B |
Editor panel heading and Character Sheet section headers |
sheet_name |
#2B2B2B |
#2B2B2B |
Character Sheet header character name |
sheet_label |
#6B6B6B |
#6B6B6B |
Character Sheet row labels and Genetics gene names |
sheet_value |
#404040 |
#404040 |
Character Sheet row values |
card_title |
#2B2B2B |
#2B2B2B |
Trait card titles, Personality name, and Townstead Root name |
card_text |
#4A4A4A |
#4A4A4A |
Trait card descriptions and Townstead Root backstory |
empty_text |
#6B6B6B |
#6B6B6B |
Empty picker search result text and None / No traits placeholders |
counter |
#404040 |
#404040 |
Bottom dock page counter ( X / N) |
stage_text |
#E0E0E0 |
#E0E0E0 |
Primary text over the dark 3D stage |
stage_hint |
#A0A0A0 |
#A0A0A0 |
"Drag to rotate", "Hover an entry to try it on", and player-model hint |
badge_text |
#FFFFFF |
#FFFFFF |
Default stage badge text ( Original, Trying on) |
badge_height |
#AED4FF |
#AED4FF |
Stage block-height badge text |
badge_age |
#FFE08A |
#FFE08A |
Stage age-state and Preview badge text |
field_text |
#E0E0E0 |
#E0E0E0 |
Picker search input text |
field_hint |
#707070 |
#707070 |
Picker search placeholder ( Search...) |
meter_fill |
#5DA0E0 |
#5DA0E0 |
RGB tint multiplied onto meter_fill Genetics bars |
catalog_current |
#FFD84A |
#FFD84A |
Accent color slot for active catalog entry highlights |
destiny_title |
#E0E0E0 |
#404040 |
Large "Who are you?" heading drawn inside Destiny’s dark editor_well |
Customizing Dock Icons & Page Labels (pages.json & Lang)
Dock Page Icons (assets/mcaguiplus/gui/pages.json)
PageCatalog merges every assets/mcaguiplus/gui/pages.json in the resource stack. Higher-priority packs only need to list page IDs whose icon they want to change:
| Page Key | Built-In Icon | Covers |
|---|---|---|
default |
minecraft:paper |
Fallback for unknown pages (uses minecraft:paper if missing or invalid) |
general |
minecraft:name_tag |
General page |
body |
mca:needle_and_thread |
Body page |
head |
mca:comb |
Head page |
personality |
mca:bouquet |
Personality page |
traits |
mca:family_tree |
Traits page |
debug |
minecraft:command_block |
Debug page |
presets |
minecraft:bookshelf |
Presets page |
origins |
minecraft:oak_sapling |
Townstead Roots page |
aspects |
minecraft:amethyst_shard |
Townstead Aspects page |
townstead_character |
minecraft:armor_stand |
Shared fallback icon for Townstead townstead_char:* tabs |
Lookup Order (PageCatalog.icon):
- Exact page ID (
e.g. "mymod:custom"). - Namespace prefix before
:(e.g. "mymod"). - Townstead stable mapping (
"townstead_character"for"townstead_char:*"). "default"(and finallyminecraft:paperif that item is missing orminecraft:air).
Page Titles & Tooltip Descriptions (lang/en_us.json)
- Titles:
PageCatalog.title(page)checksgui.mcaguiplus.page.<id>first, then MCA’sgui.villager_editor.page.<id>, then a prettified version of the ID. - Descriptions:
PageCatalog.description(page)checksgui.mcaguiplus.page.<id>.descfirst, falling back togui.mcaguiplus.page.townstead_character.descfor generated Townstead tabs.
Stoneborn & Atlas Generator (tools/generate_gui_theme.py)
The source repository includes a reproducible Python 3 + Pillow (PIL) generator (tools/generate_gui_theme.py) that paints a 256×256 atlas PNG and writes synchronized uv coordinates into theme.json:
# Regenerate the built-in vanilla theme + atlas under src/main/resources/assets/mcaguiplus/
python3 tools/generate_gui_theme.py vanilla src/main/resources
# Generate a conditional Stoneborn override (active only when "Runecraft Textures" is enabled)
python3 tools/generate_gui_theme.py stoneborn path/to/modpack/kubejs
When run with stoneborn, it generates assets/mcaguiplus/textures/gui/theme/stoneborn.png and assets/mcaguiplus/gui/theme.json gated by "conditions": { "packs_enabled": ["file/Runecraft Textures"] }, with gilded dark stone frames, text_shadow: true, and warm gold/parchment colors immune to Runecraft Textures’ neutral-grey ink shader.
Copy-Pasteable Templates
1. Resource Pack pack.mcmeta (1.20.1)
{
"pack": {
"pack_format": 15,
"description": "Custom MCA GUI+ theme and page icons"
}
}
2. Conditional Stoneborn-Style assets/mcaguiplus/gui/theme.json
Use this pattern in a modpack’s kubejs/assets/mcaguiplus/gui/theme.json or a resource pack to activate a custom atlas and shader-safe palette only when Runecraft Textures is active:
{
"conditions": {
"packs_enabled": ["file/Runecraft Textures"]
},
"texture": "mcaguiplus:textures/gui/theme/stoneborn.png",
"texture_size": [256, 256],
"sprites": {
"panel": { "uv": [0, 0, 32, 32], "border": 8 },
"slot": { "uv": [33, 0, 8, 8], "border": 1 },
"stage": { "uv": [42, 0, 32, 64], "border": 7 },
"well": { "uv": [75, 0, 16, 32], "border": 2 },
"field": { "uv": [92, 0, 8, 8], "border": 1 },
"field_focused": { "uv": [101, 0, 8, 8], "border": 1 },
"card": { "uv": [110, 0, 16, 16], "border": 3 },
"divider": { "uv": [127, 0, 8, 2], "border": 0, "tile": true },
"scroll_track": { "uv": [136, 0, 8, 8], "border": 1 },
"scroll_thumb": { "uv": [145, 0, 8, 16], "border": 2 },
"scroll_thumb_hover": { "uv": [154, 0, 8, 16], "border": 2 },
"tile": { "uv": [163, 0, 8, 8], "border": 1 },
"tile_hover": { "uv": [172, 0, 8, 8], "border": 1 },
"tile_selected": { "uv": [181, 0, 9, 9], "border": 3 },
"tile_current": { "uv": [191, 0, 9, 9], "border": 3 },
"badge": { "uv": [201, 0, 8, 8], "border": 1 },
"pedestal": { "uv": [0, 65, 48, 10], "border": 0 },
"meter_fill": { "uv": [49, 65, 8, 4], "border": 1 },
"glyph_left": { "uv": [58, 65, 7, 9], "border": 0 },
"glyph_right": { "uv": [66, 65, 7, 9], "border": 0 }
},
"colors": {
"title": "#F2D27A",
"subtitle": "#B8AC94",
"text": "#EAE2D0",
"text_muted": "#B8AC94",
"heading": "#E0B230",
"sheet_name": "#F4E7C4",
"sheet_label": "#B8AC94",
"sheet_value": "#EAE2D0",
"card_title": "#F4E7C4",
"card_text": "#D8CFBC",
"empty_text": "#B8AC94",
"counter": "#EAE2D0",
"stage_text": "#EAE2D0",
"stage_hint": "#B8AC94",
"badge_text": "#F4E7C4",
"badge_height": "#F2D27A",
"badge_age": "#C9E8B0",
"field_text": "#EAE2D0",
"field_hint": "#8E846F",
"meter_fill": "#E0B230",
"catalog_current": "#E0B230",
"destiny_title": "#F2D27A"
},
"text_shadow": true,
"stage_text_shadow": true
}
3. Minimal Partial Override (assets/mcaguiplus/gui/theme.json)
Override only the sprites and colors you want to tweak—everything else stays inherited from lower layers:
{
"texture": "mypack:textures/gui/mcaguiplus_custom.png",
"texture_size": [256, 256],
"sprites": {
"panel": { "uv": [0, 0, 24, 24], "border": [6, 6, 6, 6] },
"tile_current": { "uv": [25, 0, 9, 9], "border": 3 }
},
"colors": {
"meter_fill": "#48C9B0",
"catalog_current": "#52BE80"
}
}
4. Custom Dock Icons (assets/mcaguiplus/gui/pages.json)
{
"pages": {
"general": { "icon": "minecraft:writable_book" },
"presets": { "icon": "minecraft:lectern" },
"origins": { "icon": "minecraft:cherry_sapling" },
"townstead_character": { "icon": "minecraft:player_head" }
}
}
5. Language String Overrides (assets/mcaguiplus/lang/en_us.json)
{
"gui.mcaguiplus.page.general.desc": "Name, gender, voice, age and family.",
"gui.mcaguiplus.page.body.desc": "Skin, proportions, clothes, hair and eyes.",
"gui.mcaguiplus.page.head.desc": "Hair, eyes and face.",
"gui.mcaguiplus.page.personality.desc": "How this villager talks and reacts.",
"gui.mcaguiplus.page.traits.desc": "Inherited traits such as left-handedness or heterochromia.",
"gui.mcaguiplus.page.debug.desc": "Profession, infection, hearts and mood.",
"gui.mcaguiplus.page.origins.desc": "Townstead Roots: this character's people.",
"gui.mcaguiplus.page.aspects.desc": "Townstead Aspects.",
"gui.mcaguiplus.page.townstead_character.desc": "Townstead features inherited from this character's Root.",
"gui.mcaguiplus.preview.hover_hint": "Hover an entry to try it on",
"gui.mcaguiplus.preview.trying": "Trying on",
"gui.mcaguiplus.sheet.casual": "Casual"
}
6. Pre-Seeded Modpack Client Config (config/mcaguiplus-client.toml)
[screens]
enableEditor = true
enableLimitedEditor = true
enableDestiny = true
enableCombAndNeedle = true
[layout]
showCharacterSheet = true
autoRotatePreview = false
followMouseByDefault = true
World Upgrades & Safe Removal
- Adding Mid-Save: Completely safe. MCA GUI+ alters only client-side GUI rendering and layout.
- Removing Mid-Save: Completely safe. Because MCA GUI+ adds zero blocks, items, entities, recipes, or world NBT tags, removing the jar restores MCA Reborn’s native screens immediately with zero world corruption. (You may optionally delete
config/mcaguiplus-client.toml.)