Repository navigation
Style Tutorial
A style is one JSON file. It decides the look of the content; which line belongs to which section is decided by the Rules. There is no editor in game, but every change shows up after /statscope reload (or F3+T), without a restart.
| Location | Use |
|---|---|
assets/<namespace>/statscope/styles/<id>.json |
in a resource pack or a mod; the built-in styles are assets/statscope/statscope/styles/hybrid.json, diablo.json, poe.json, vanilla_plus.json
|
config/statscope/styles/<id>.json |
for a modpack or yourself; lies on top of the resources |
The file name without .json is the style id. A file with the id of a built-in style replaces it; any other id is a new style that the style key cycles through after the built-in ones. Select a style with style = "<id>" in config/statscope-client.toml.
Every field is optional. A missing field gets its default, a broken field is logged (file and path) and replaced by its default, the rest of the file still counts. The easiest start is a copy of a built-in style, see Your own style, step by step.
| Field | Values (default) | Meaning |
|---|---|---|
format |
1 |
file format; always 1 for now |
name |
text ("Default") |
name shown after the style key ("Style: Diablo") |
view |
hybrid / text (hybrid) |
hybrid = drawn view with large numbers, icons and bars; text = plain text lines (also the fallback after an error) |
attribute_descriptions |
bool (true) |
with Ctrl, a small description under the first line of every attribute, if a resource pack or mod has a text for <attribute key>.desc
|
apotheosis_rarity_word |
never / ctrl / always (never) |
Apotheosis' rarity as a word behind the rarity tier in the head ("Epic ★★★★ · Mythic", in the rarity's color); ctrl only with Ctrl; without Tooltip Overhaul at the front of the type line, without RarityCore alone in the head. No effect without Apotheosis. All built-in styles say never: the color of the name shows it already |
sections |
list | order, visibility, alignment and headings of the sections |
groups |
list of lists | which sections belong together; separators go between groups |
layout |
object | measures of the drawn view |
type_line |
object | type line and status |
rarity |
object | rarity tier in the head |
core_stats |
object | display of the core stats |
rule_sections |
object | move the lines of a rule into another section |
bullets |
object | characters in front of lines |
legendary |
object | legendary powers |
separators |
object | separators between sections and groups |
sockets |
object | display of sockets |
spells |
object | spell line |
colors |
object | all text colors |
footer |
object | durability, key hint, mod name |
compare |
object | colors and glyphs of the comparison |
Section ids: type, core, status, base, affixes, resistances, effects, legendary, sockets, enchantments, set_bonus, spells, other, malice, footer, advanced. Sections not listed are still shown, behind the listed ones in this order. status is empty unless a style moves lines into it with rule_sections.
| Field of a section | Values (default) | Meaning |
|---|---|---|
id |
section id | which section |
visible |
bool (true) |
false hides the section |
align |
left / center / right (left) |
alignment of the lines |
heading |
bool (false) |
a heading above the section ("Affixes:"); core and base stats use the slot text of the game ("When in Main Hand:") |
heading_key |
translation key ("") |
own heading instead of statscope.heading.<id>
|
heading_rule |
rule id ("") |
a line of this rule becomes the heading (e.g. enchantment_limit → "Enchantments 1/3:") |
heading_rule_key |
translation key ("") |
text of that heading, filled with the arguments of the line ("statscope.heading.enchantment_slots" = "Enchantments %s/%s:") |
indent |
0–32 (0) |
the lines start this many pixels further right |
"sections": [
{ "id": "type", "align": "center" },
{ "id": "core", "align": "center" },
{ "id": "affixes", "heading": true, "indent": 4 },
{ "id": "enchantments", "heading": true, "heading_rule": "enchantment_limit", "heading_rule_key": "statscope.heading.enchantment_slots" }
],
"groups": [["type", "core"], ["base"], ["affixes", "resistances", "effects"], ["legendary", "sockets", "enchantments"], ["set_bonus", "spells"], ["other"], ["malice", "footer", "advanced"]]| Field | Values (default) | Meaning |
|---|---|---|
wrap_width |
80–1000 (240) |
long paragraphs (legendary power, effects, spell details, explanations) wrap at this width |
icon_column |
0–32 (10) |
width of the icon column in front of attribute lines |
small_scale |
0.5–1 (0.75) |
size of small lines (status, footer line, key hint) |
section_gap |
0–10 (2) |
space between sections of one group |
line_height |
9–14 (10) |
height of a normal line |
min_width |
0–1000 (0) |
minimum width of the content |
accent_indent |
0–16 (5) |
indent of lines opened by Alt or Ctrl (the gold bar sits left of them) |
pixel_snap |
bool (true) |
rounds scaled text to whole screen pixels, so small text stays crisp at every GUI scale |
Long lines never break inside […] or (…), and lines made of parts joined with " · " only break at those separators.
| Field | Values (default) | Meaning |
|---|---|---|
status_rules |
rule ids (["dungeon_difficulty_power_level", "enchantment_limit"]) |
lines that form the status ("Power Level: 9 · Enchantments: 1/3") |
status |
below / right / inline / lines (below) |
where the status goes: a small line below the type line, small on the right of the type line, joined into the type line, or one line each as a property |
status_with_header |
same values or "" ("") |
where the status goes while the rarity tier stands in the head; "" = like status. Hybrid uses "inline": without the tier, the type line has room for it |
slot |
bool (true) |
the slot in the type line ("Main Hand"); false when a heading names it |
slot_rules |
rule ids (["curios_slot", "accessories_slot"]) |
lines that only name the slot ("Slot: Ring"); hidden while the type line or a heading names the slot |
item_kind |
bool (true) |
older field: the item kind after the tier ("Legendary Claymore"); use rarity.item_kind
|
strip_rarity_brackets |
bool (true) |
older field: "[Legendary]" → "Legendary"; use rarity.brackets
|
The rarity tier of RarityCore with its stars. With Tooltip Overhaul it stands right under the item name, in Tooltip Overhaul's rating line; without Tooltip Overhaul (or with rarityInHeader = false in the config) at the front of the type line.
| Field | Values (default) | Meaning |
|---|---|---|
in_header |
bool (true) |
tier in the head |
item_kind |
bool (missing: taken from type_line.item_kind) |
the kind of item behind the tier ("Legendary Claymore ★★★★★"): Better Combat's weapon kind, else Apotheosis' category, else the slot |
brackets |
bool (missing: the opposite of type_line.strip_rarity_brackets) |
"[Legendary]" as RarityCore writes it |
align |
"" / left / middle / right ("") |
alignment in the head; "" = Tooltip Overhaul's own setting |
"rarity": { "in_header": true, "item_kind": false, "brackets": true, "align": "" }All built-in styles show no item kind; Vanilla+ uses brackets, Path of Exile centers the line.
Which values are core stats is set per template in the rule files (core_stats, see Rules); the style decides how they look.
| Field | Values (default) | Meaning |
|---|---|---|
display |
large / property / line (large) |
first value large and the others small below it; one line per value as "Attack Damage: 43.7"; or normal attribute lines |
scale |
1–3 (1.5) |
size of the large number |
icons |
bool (true) |
attribute icons in front of the core stats |
compare_arrow |
bool (true) |
comparison marker at the core stats |
base_values |
line / property (line) |
unsigned base values on items without core stats (a tool's "5 Attack Damage") as lines or as properties |
Moves the lines of a rule into another section. Diablo puts the enchantment slots into the footer, Path of Exile puts power level and slots into their own status section:
"rule_sections": { "enchantment_limit": "footer" }The power level factor (Ctrl) moves together with the power level line.
| Field | Default | In front of |
|---|---|---|
affix |
"◆ " |
stat affixes |
affix_star |
"★ " |
stat affixes with a roll above the maximum |
effect |
"• " |
effects |
effect_star |
"★ " |
effects with a roll above the maximum |
resistance |
"⛨ " |
resistances |
base |
"" |
base values |
breakdown |
"┇ " |
breakdown lines (text view) |
star |
"★" |
the star behind totals with a roll above the maximum |
socket_filled / socket_empty
|
"●" / "◇"
|
sockets |
set_active / set_inactive
|
"◆" / "◇"
|
worn / missing set pieces |
bonus_active |
"▲ " |
active set bonuses |
gem |
"◇ " |
values in the affix group that only a gem gives |
gem_effect |
"◇ " |
gem bonuses without an attribute (effects, durability, enchantment levels) |
Use characters of Minecraft's own font; "§" is Minecraft's format character and disappears.
| Field | Values (default) | Meaning |
|---|---|---|
legendary.display |
paragraph / line (paragraph) |
name with the description below, or name, joiner and description in one paragraph |
legendary.name |
always / ctrl (always) |
the affix name always or only with Ctrl |
legendary.bullet |
text ("") |
in front of the description ("✦ ") |
legendary.joiner |
text (" · ") |
between name and description in line
|
separators.between_groups |
ornament / line / blank / none (ornament) |
between groups (ornament = a line with the glyph in the middle) |
separators.between_sections |
blank / line / ornament / none (blank) |
between sections in the text view; the drawn view uses layout.section_gap
|
separators.glyph |
text ("◆") |
the glyph of the ornament |
sockets.display |
compact / symbols / list / apotheosis (apotheosis) |
gem picture and name per socket; one row of socket symbols then the gem names; one paragraph "Flawed Ballast Gem · 1 empty"; or Apotheosis' own component. The gem's values stand in the affix group, Ctrl shows its bonus with the effective value |
sockets.gem_scale |
0.25–1 (0.5) |
size of the gem picture (1 = 16 px) |
sockets.label |
bool (false) |
"Sockets: " in front |
spells.label_key |
translation key prefix ("statscope.spell") |
the spell line uses <label_key>.active/.passive/.modifier: "Spell: Flurry", statscope.spell.skill gives "Skill: Flurry" |
All built-in styles set sockets.display explicitly; apotheosis is only the fallback.
Colors as "#RRGGBB".
| Field | Default | Used for |
|---|---|---|
text |
#FFFFFF |
normal text |
dim |
#AAAAAA |
secondary text, explanations |
heading |
#C9A35A |
headings |
improved |
#8888FF |
totals with affix, gem or enchantment parts |
affix |
#8888FF |
stat affixes |
legendary_name |
#FF8C1A |
names of legendary powers |
legendary_text |
#D6CFC4 |
their description |
effect |
#E8D9A0 |
effects |
resistance |
#9FD0FF |
resistances |
malice |
#FF5555 |
malice lines |
type |
#D6CFC4 |
type line |
status |
#BDB4C7 |
status, footer line, small hints |
hint |
#777777 |
key hint |
debug |
#55AA55 |
lines of the debug key |
separator |
#9C8BB0 |
separators |
star |
#F0C94A |
★ |
set_name |
#F0A43A |
set name |
set_active / set_inactive
|
#7BC96F / #8C8496
|
active / inactive set bonuses |
spell |
#7FD3E8 |
spell line |
accent |
#F0A43A |
the bar left of lines opened by Alt or Ctrl, the power level factor, the "Style: …" hint |
breakdown_gem |
#BDB4C7 |
gem names in the breakdown |
enchantment |
#C4A7F5 |
enchantment lines Statscope does not build itself |
enchantment_value |
#A99CB8 |
the number next to an enchantment (with Ctrl) |
property_name / property_value
|
#7F7F7F / #F0F0F0
|
"Attack Damage: " and its value in property lines |
Statscope draws no background; colors have to be readable on the backgrounds of Tooltip Overhaul (or vanilla).
| Field | Values (default) | Meaning |
|---|---|---|
key_hint |
bool (true) |
[Alt] Abilities · [Ctrl] Info · [Shift] Compare |
short_key_names |
bool (true) |
"[Alt]" instead of "[Left Alt]" |
control_hints |
bool (true) |
hints of other mods (Quark "Right-Click to Equip", Relics …) small and grey in the footer |
durability_bar |
bool (true) |
durability as a bar |
durability_label |
bool (false) |
"Durability: 2031 / 2031" instead of "2031 / 2031" |
join_rules |
rule ids (["data:durability", "afterwear_integrity", "data:durability_bonus"]) |
lines joined into one line below the bar ("2031 / 2031 · Pristine · ignores 66% durability damage") |
small |
bool (true) |
that line in small type |
mod_name |
line / right (line) |
the mod name in its own line or right-aligned on the joined line |
bar_colors |
object |
background, pristine, worn, damaged, broken
|
| Field | Default | Meaning |
|---|---|---|
better / worse
|
#7BC96F / #E8706A
|
marker colors |
new / lost
|
#7BC96F / #E8706A
|
"new" and "lost" |
changed |
#BDB4C7 |
difference of a neutral attribute |
up / down
|
"▲" / "▼"
|
glyphs |
glyph_gap |
true |
"▲ 0.3"; false gives "+0.3" (with up: "+", down: "-") |
new_badge |
true |
"new" in a small frame |
align |
left |
lost lines and the set swap left or section (aligned like their section) |
Goal: a style "Minimal" based on Hybrid, left aligned, with headings, no durability bar and gold numbers.
-
Copy a built-in style. Unzip
assets/statscope/statscope/styles/hybrid.jsonfrom the Statscope jar (or copy it from the source) toconfig/statscope/styles/minimal.json. -
Name it. Set
"name": "Minimal". -
Left aligned with headings. In
sections, remove"align": "center"fromtypeandcoreand givebaseandaffixesa heading:{ "id": "type" }, { "id": "core" }, { "id": "base", "heading": true }, { "id": "affixes", "heading": true, "indent": 4 }, -
Core stats as properties.
"core_stats": { "display": "property", "icons": true }. -
Footer as text.
"footer": { "durability_bar": false, "durability_label": true, "key_hint": true }. -
Gold numbers. In
colors, set"improved": "#E8B84A"and"affix": "#E8B84A". -
Load it. In game:
/statscope reload, then setstyle = "minimal"in the config screen of the mod list or press the style key until "Style: Minimal" shows. -
Check it. Hover a few items with Alt, Ctrl and Shift. If something does not show up as expected, the log (
logs/latest.log) names the file and field that could not be read; the debug key shows which section each line is in.
To ship the style with a modpack, put the file into the pack's config/statscope/styles/ and set style in the pack's config/statscope-client.toml (see For pack makers). To make it the only style, also set playerCanSwitchStyle = false.
Statscope for NeoForge 1.21.1 · CurseForge · Source · Report a bug
Start
Using Statscope
Customizing
Reference