Repository navigation
For Pack Makers
Statscope is built so that a modpack decides everything without touching the jar: which items count as equipment, where the lines of your mods go, which style and comparison mode players get, and whether they may change them.
Ship these files with your pack:
| File | Purpose |
|---|---|
config/statscope-client.toml |
style, comparison mode, player switches, key hint (see Configuration) |
config/statscope/rules/*.json |
your own rules on top of the built-in ones: lines of mods Statscope does not know, core stats, templates, comparison partners (see Rules) |
config/statscope/styles/<id>.json |
your own style or a changed copy of a built-in one (see Style tutorial) |
Files in config/statscope/ lie on top of the built-in resources and are merged by id, so a rule file only needs the rules you add or change. Use a name that sorts after the built-in files, e.g. 90_mypack.json. A resource pack or a KubeJS assets folder can do the same with assets/<namespace>/statscope/rules|styles/.
Add items to these tags with a datapack or KubeJS:
| Tag | Effect |
|---|---|
statscope:exclude |
Statscope leaves the item alone, it keeps its own tooltip. Useful for mods with their own complete tooltip system (e.g. Silent Gear, which shows its own property list on Ctrl) |
statscope:include |
anything else becomes equipment with the lean tool template |
statscope:template/<template> |
force a template: melee, ranged, caster_weapon, armor, caster_armor, shield, jewelry, tool
|
// data/statscope/tags/item/exclude.json
{ "values": [ "silentgear:pickaxe", "silentgear:chestplate" ] }| Option | Effect |
|---|---|
style + playerCanSwitchStyle = false
|
every player gets your style; the style key says "The pack sets the tooltip style" |
compare.mode + compare.playerCanSwitchMode = false
|
fixed comparison mode |
keyHint |
key hint in the footer on or off |
debugKey |
turn the debug key off for players (it is not bound by default anyway) |
The keys themselves are vanilla key bindings; ship them with a mod like Default Options if you want different defaults.
Statscope's comparison is on left Shift. Before you release a pack:
- Apotheosis: unbind Compare Equipment (
key_key.apotheosis.compare_equipment:key.keyboard.unknown) or setEnable Equipment Comparisonsto false inconfig/apotheosis/apotheosis.cfg. Statscope logs a hint if both are on the same key. - Tooltip Overhaul: nothing to do, Statscope switches its comparison off (
compare.disableTooltipOverhaulCompare). - Relics: "Research Relic Under Cursor" opens a screen after about a second of left Shift; move it to another key (e.g. right Shift) if players compare relics.
Statscope does not change Tooltip Overhaul's config. These settings in config/tooltipoverhaul/tooltipoverhaul.toml (Tooltip Overhaul 2.1.1) fit the built-in styles:
| Style | Settings |
|---|---|
| Hybrid | the defaults: TITLE_X_ALIGNMENT = "left", DIVIDER_LINE_TYPE = "gradient", TOOLTIP_LAYOUT = "classic"
|
| Diablo |
TITLE_X_ALIGNMENT = "left", DIVIDER_LINE_TYPE = "linear", BACKGROUND_CORNER_TYPE = "square", INNER_FRAME_CORNER_TYPE = "bevel", DEFAULT_INNER_OVERLAY_TYPE = "static", DEFAULT_BACKGROUND_COLOR = "#F00D0A08"
|
| Path of Exile |
TITLE_X_ALIGNMENT = "middle", RATING_X_ALIGNMENT = "middle", ALIGNMENT_IGNORES_ICON = true, DIVIDER_LINE_TYPE = "ornament", BACKGROUND_CORNER_TYPE = "square", DEFAULT_INNER_OVERLAY_TYPE = "static", DEFAULT_BACKGROUND_COLOR = "#F0050505"
|
| Vanilla+ |
TOOLTIP_LAYOUT = "classic", DIVIDER_LINE_TYPE = "static" (or DISABLE_DIVIDER_LINE = true), DEFAULT_INNER_OVERLAY_TYPE = "static", DEFAULT_BACKGROUND_COLOR = "#F0100010"
|
More notes:
-
Rating line: Statscope uses Tooltip Overhaul's rating line under the name for the rarity tier, even with
SHOW_RATING = false. KeepSHOW_RATING = falseif you use RarityCore: Tooltip Overhaul's own rating shows the vanilla rarity, which does not match RarityCore. -
Custom frames (
custom_frames.json) work as before; Statscope's colors are made for dark backgrounds. Check frames with bright effects. -
Mod name, durability, registry name that Tooltip Overhaul appends itself (
SHOW_MOD_NAME,SHOW_ITEM_DURABILITY…): Statscope shows durability in its own footer, so turn Tooltip Overhaul's off to avoid it twice.
- Durability Tooltip: not needed any more, Statscope's footer replaces it (its line is dropped).
- Apothic Combat: its attack range line is replaced by Statscope's own (computed like Better Combat).
- Icon Leading Tooltip: can stay; it keeps working for every other item.
- Better Advanced Tooltips: stays, its lines go to the advanced section (F3+H).
-
SimplyTooltips: set
enableTooltipRendering = false, otherwise it replaces Tooltip Overhaul and Statscope for its items. - Attribute icon packs: Statscope puts the first icon glyph of an attribute name in front of the value. If a language of your pack shows no icons, the icon pack has no translation for that language; add one with the same glyphs.
- Own core stat rules for armor and staffs made for 0.1.0 (armor with health and mana, one slot per spell school) are not needed any more from 0.1.1 on; remove them, otherwise their fixed slots stay (no sorting of the schools by value).
-
Attribute descriptions (Ctrl) come from the keys
<attribute key>.desc. Apothic Attributes brings 50 of them, attribute icon packs often more. A small resource pack can add your own or translate them.
- Hover every kind of equipment with Alt, Ctrl and Shift.
- Hold the debug key on items of mods Statscope does not know: lines in
otherhave no rule yet. Write rules for them, or leave them, nothing is lost. -
/statscope dumpon items where something looks odd and look at the keys. - Check
logs/latest.logfor lines starting with "Statscope:"; broken rule or style entries are logged with file and path.
Statscope for NeoForge 1.21.1 · CurseForge · Source · Report a bug
Start
Using Statscope
Customizing
Reference