SparkleCore
一个共享库模组,为 SparkleArts 的其他 Minecraft 模组提供支持 —— 此外还包含一些独立使用的附魔提示词升级功能,让你无需打开 wiki 即可一目了然地判断附魔物品的强度与作用。
⚠️ 早期 Alpha 版本(0.1.0-alpha)。 下文描述的功能和 API 可能仍会发生更改。
功能
附魔力量值与等级
附魔物品会额外显示一行提示词,展示数值化的力量值——这是对该物品堆栈中所有附魔进行加权计算后的总和(宝藏类附魔权重更高,诅咒类附魔则计为负值),并根据该数值划分为不同等级:
| 等级 |
力量值 |
大致含义 |
| 普通 |
0 – 4.9 |
基础水平 / 没有强力附魔 |
| 稀有 |
5 – 9.9 |
单个稳固的中阶附魔,或几个低阶附魔的组合 |
| 史诗 |
10 – 19.9 |
两个强力附魔,或一个宝藏附魔加上一个次级附魔 |
| 传说 |
20+ |
多个高阶和/或宝藏附魔叠加在一起 |
此功能对附魔书同样有效,不仅限于工具和盔甲。
可通过 sparklecore-client.toml 进行配置:
- 启用力量值 (
power_score_tooltip) — 完全切换该提示词行的显示。
- 力量值显示模式 (
power_score_display_mode) — 0 = 仅按住 Shift 时显示,1 = 始终显示,2 = 仅在启用高级工具提示(F3+H)时显示。
附魔分类
每个附魔都被归类到一个类别中,并在其提示词行上显示为小型彩色徽章:
| 类别 |
符号 |
颜色 |
| ⚔ 攻击 |
◆ |
红色 |
| ? 防御 |
? |
蓝色 |
| ⭐ 实用 |
★ |
黄色 |
| ? 诅咒 |
❌ |
暗红色 |
| ? 机动 |
↑ |
绿色 |
单附魔的附魔书也会在提示词中完整显示其分类信息。
兼容性
依赖要求
- Minecraft 26.1.2
- NeoForge 26.1.2.71 或更高版本
- 如果你正在使用另一个将本模组列为依赖项的 SparkleArts 模组,则为必需;否则为可选 —— 若希望单独获得上述提示词功能,可单独安装。
即将推出
- 完整的 wiki 文档
- 面向开发者的 API Javadocs
致谢
由 SparkleArts 创作,基于 MCreator 构建。
SparkleCore
A shared library mod powering SparkleArts's other Minecraft mods — plus a handful of standalone enchantment tooltip upgrades usable on their own, so you can judge an enchanted item's power and role at a glance without opening a wiki.
⚠️ Early alpha (0.1.0-alpha). Features and APIs described below may still change.
Features
Enchantment Power Score & Tier
Enchanted items get an extra tooltip line showing a numeric Power Score — a weighted total across all of a stack's enchantments (treasure enchantments count extra, curses count negative) — bucketed into a tier:
| Tier |
Power Score |
Roughly means |
| Common |
0 – 4.9 |
Baseline / no strong enchantments |
| Rare |
5 – 9.9 |
A single solid mid-level enchantment, or a couple of low-level ones |
| Epic |
10 – 19.9 |
Two strong enchantments, or a treasure enchantment plus a secondary one |
| Legendary |
20+ |
Multiple high-level and/or treasure enchantments stacked together |
Works correctly on Enchanted Books too, not just tools and armor.
Configurable via sparklecore-client.toml:
- Enable Power Score (
power_score_tooltip) — toggle the tooltip line entirely.
- Power Score Display Mode (
power_score_display_mode) — 0 = only while holding Shift, 1 = always shown, 2 = only with Advanced Tooltips (F3+H) enabled.
Enchantment Categories
Every enchantment is classified into a category, shown as a small colored badge on its tooltip line:
| Category |
Symbol |
Color |
| ⚔ Offense |
◆ |
Red |
| ? Defense |
? |
Blue |
| ⭐ Utility |
★ |
Yellow |
| ? Curse |
❌ |
Dark Red |
| ? Mobility |
↑ |
Green |
Single-enchantment Enchanted Books also get a full category readout on their tooltip.
Compatibility
Requirements
- Minecraft 26.1.2
- NeoForge 26.1.2.71 or newer
- Required if you're using another SparkleArts mod that lists it as a dependency; otherwise optional — install it on its own for the tooltip features above.
Coming Soon
- A full wiki
- Javadocs for the developer-facing API
Credits
Created by SparkleArts, built with MCreator.
评论 0
登录后参与评分
还没有评论,来抢沙发吧