Custom Splash
一个替换或扩展 Minecraft 标题屏幕黄色提示文本的模组。通过 JSON 文件或代码进行配置,添加颜色、渐变、彩虹效果、占位符和条件——无需触碰游戏文件。
- Fabric、Forge 和 NeoForge,无需其他模组。
- Fabric:Minecraft 1.14 至 26.3 —— 每个稳定版本,共 48 个版本。
- Forge:Minecraft 1.16.1 至 1.20.6 —— 所有拥有 Forge 构建的版本,共 20 个版本。
- NeoForge:Minecraft 1.20.5 至 26.3 —— 18 个版本,包括 26.x 系列。
Minecraft 1.16.0 和 1.17.0 没有 Forge 构建,仅支持 Fabric;1.20.5 支持 Fabric + NeoForge(Forge 从未为其提供构建)。
仅客户端生效;多人游戏中没有任何变化。
安装
将对应 Minecraft 版本的 JAR 文件放入 mods/ 目录中。首次启动时,该模组会创建 config/customsplash.json。在你编辑它之前,标题屏幕将显示 Check your custom splash config file to customize!。
Forge 下载请使用文件名中包含 -forge- 的 JAR 文件,NeoForge 下载使用 -neoforge- JAR 文件,Fabric 下载使用普通的 customsplash-<mc>-… JAR 文件。
从 1.x 升级
2.0.0 版本去除了模组 ID 中的连字符:NeoForge 拒绝 custom-splash,而 Forge 1.17 及更高版本会从中派生出一个无效的 Java 模块名,因此在此版本之前,该模组根本无法在 NeoForge 上加载,也无法在 Forge 1.17–1.19.4 上加载。两个路径必须随模组 ID 一起更改:
- 将
config/custom-splash.json重命名为config/customsplash.json—— 文件格式未变,因此其内容无需编辑; - 如果你分发资源包,将其
assets/custom-splash/splashes.txt(或splashes.json)移至assets/customsplash/。
配置格式和 SplashRegistry API 的其他部分均未改变。
配置
{
"splashes": [
{ "text": "Check your custom splash config file to customize!" },
{ "text": "Hello, {player}!", "weight": 5, "color": "#FFAA00" },
{ "text": "Rainbow time", "color": "rainbow:25" },
{ "text": "Enjoy the weekend!", "conditions": { "weekend": true } },
{ "text": "Late night coding", "conditions": { "time": "night", "chance": 0.5 } },
{ "text": "You run Fabric!", "conditions": { "mods": ["fabric"] } }
]
}
text—— 提示文本。占位符会在绘制提示文本时替换;未知标记将保持原样。weight—— 相对出现几率,默认为1。数值越高,出现频率越高。color—— 纯色、渐变或彩虹效果,详见下文。conditions—— 列出的所有条件都必须匹配:time:day(白天)或night(夜晚)date:MM-DD或MM-DD..MM-DD(范围可跨年)weekend:true/falseplayer: 用户名列表mods: 所需模组的 ID 列表chance:0.0–1.0的随机概率
配置文件、启用的资源包以及 SplashRegistry.add(...) 中的所有条目都会合并在一起。当没有任何条件匹配时,将使用原版提示文本。
占位符
| 占位符 | 展开为 |
|---|---|
{player}, {username} |
你的用户名,如果未知则为 player |
{date} |
今天的日期,格式为 yyyy-MM-dd |
{time} |
当前时间,格式为 HH:mm |
{mc_version}, {mc}, {version} |
正在运行的 Minecraft 版本 |
{mods}, {mods_count} |
已加载模组的数量 |
占位符仅在选取提示文本时展开一次,因此 {time} 反映的是标题屏幕渲染时的时刻,而非实时时钟。无法解析的占位符将保持字面量形式,而不是显示为空白。
颜色
| 值 | 含义 |
|---|---|
#RRGGBB |
整个文本的单色 |
#RRGGBB,#RRGGBB |
跨字符的渐变 |
#RRGGBB,#RRGGBB,… |
包含多个色标的渐变 |
gradient:#RRGGBB,… |
显式声明的相同渐变 |
rainbow |
色相循环,每个字符 15° |
rainbow:45 |
自定义每字符度数的色相循环 |
任何无法解析的值都将被忽略,并回退到原版黄色。渐变按字符采样,因此每个字符获得独立的插值结果,且首尾字符精确匹配对应的色标。
{
"splashes": [
{ "text": "Solid!", "color": "#FFAA00" },
{ "text": "Gradient!", "color": "#FF0000,#00FF00" },
{ "text": "Rainbow!", "color": "rainbow:25" }
]
}
在 1.20 之前的版本中,由于提示文本是纯字符串,无法承载逐字符样式,渐变会通过在每个字符前添加最接近的传统 § 代码来近似模拟,而纯色 #RRGGBB 则变为单个 § 代码。
资源包
资源包可以通过提供 assets/customsplash/splashes.txt 来添加提示文本。每一非空行将成为一条提示文本,以 # 开头的行将被忽略。启用的资源包会自动重新读取,调用 SplashRegistry.reload() 可强制立即刷新。
供模组开发者使用
在模组初始化期间(或在标题屏幕渲染之前的任何时间)调用 SplashRegistry.add(String):
import dev.arrbrants.customsplash.SplashRegistry;
public class MyMod implements ModInitializer {
@Override
public void onInitialize() {
SplashRegistry.add("Hello! Fabric!");
SplashRegistry.add("Powered by Mixin", 3); // weight 3
}
}
API 还暴露了 remove(String)、clear()、list()、count() 和 reload()(重新读取配置文件和启用的资源包)。pick() 返回选定的文本,pickEntry() 返回文本及其颜色。
对于 Forge 模组,请在模组构造期间注册提示文本:
import dev.arrbrants.customsplash.SplashRegistry;
@Mod("mymod")
public class MyMod {
public MyMod() {
SplashRegistry.add("Hello! Forge!");
}
}
NeoForge 模组使用注入的模组事件总线:
import dev.arrbrants.customsplash.SplashRegistry;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
@Mod("mymod")
public class MyMod {
public MyMod(IEventBus modEventBus) {
SplashRegistry.add("Hello! NeoForge!");
}
}
SplashRegistry API 在所有加载器中均相同。
Custom Splash
A mod that replaces or extends the yellow splash text on the Minecraft title screen. Configure it with a JSON file or from code, add colours, gradients, rainbows, placeholders and conditions — all without touching the game files.
- Fabric, Forge and NeoForge, no other mods required.
- Fabric: Minecraft 1.14 through 26.3 — every stable release, 48 versions.
- Forge: Minecraft 1.16.1 through 1.20.6 — every release with a Forge build, 20 versions.
- NeoForge: Minecraft 1.20.5 through 26.3 — 18 versions, including the 26.x line.
Minecraft 1.16.0 and 1.17.0 have no Forge build and stay Fabric-only; 1.20.5 is Fabric + NeoForge (Forge never shipped for it).
Client-side only; nothing changes in multiplayer.
Installation
Drop the JAR for your Minecraft version into mods/. On first launch the mod
creates config/customsplash.json. Until you edit it the title screen shows
Check your custom splash config file to customize!.
Forge downloads use the jars with -forge- in the filename, NeoForge downloads
the -neoforge- jars and Fabric downloads use the plain
customsplash-<mc>-… jars.
Upgrading from 1.x
Version 2.0.0 drops the hyphen from the mod id: NeoForge rejects custom-splash
and Forge 1.17 and newer derive an invalid Java module name from it, so before
this release the mod could not load on NeoForge at all or on Forge 1.17–1.19.4.
Two paths have to move with the id:
- rename
config/custom-splash.jsontoconfig/customsplash.json— the file format is unchanged, so its contents need no edits; - if you ship a resource pack, move its
assets/custom-splash/splashes.txt(orsplashes.json) toassets/customsplash/.
Nothing else about the config format or the SplashRegistry API changed.
Configuration
{
"splashes": [
{ "text": "Check your custom splash config file to customize!" },
{ "text": "Hello, {player}!", "weight": 5, "color": "#FFAA00" },
{ "text": "Rainbow time", "color": "rainbow:25" },
{ "text": "Enjoy the weekend!", "conditions": { "weekend": true } },
{ "text": "Late night coding", "conditions": { "time": "night", "chance": 0.5 } },
{ "text": "You run Fabric!", "conditions": { "mods": ["fabric"] } }
]
}
text— the splash text. Placeholders are replaced when the splash is drawn; unknown tokens are left untouched.weight— relative chance, default1. Higher shows more often.color— a solid colour, a gradient or a rainbow, see below.conditions— every listed condition must match:time:dayornightdate:MM-DDorMM-DD..MM-DD(ranges may wrap across new year)weekend:true/falseplayer: list of usernamesmods: list of required mod idschance:0.0–1.0random chance
Entries from the config file, from enabled resource packs and from
SplashRegistry.add(...) are all combined. When nothing matches, the vanilla
splash is used.
Placeholders
| Placeholder | Expands to |
|---|---|
{player}, {username} |
your username, or player when unknown |
{date} |
today as yyyy-MM-dd |
{time} |
the current time as HH:mm |
{mc_version}, {mc}, {version} |
the running Minecraft version |
{mods}, {mods_count} |
the number of loaded mods |
Placeholders are expanded once, when the splash is picked, so {time} is the
moment the title screen renders rather than a live clock. Placeholders that
cannot be resolved stay literal instead of showing a blank space.
Colours
| Value | Meaning |
|---|---|
#RRGGBB |
a single colour for the whole text |
#RRGGBB,#RRGGBB |
a gradient spread across the characters |
#RRGGBB,#RRGGBB,… |
a gradient with more than two stops |
gradient:#RRGGBB,… |
the same, spelled explicitly |
rainbow |
a hue cycle, 15° per character |
rainbow:45 |
a hue cycle with a custom degrees-per-character |
Anything that does not parse is ignored and falls back to the vanilla yellow. A gradient is sampled per character, so each character gets its own interpolated value and the first and last characters always match the stops exactly.
{
"splashes": [
{ "text": "Solid!", "color": "#FFAA00" },
{ "text": "Gradient!", "color": "#FF0000,#00FF00" },
{ "text": "Rainbow!", "color": "rainbow:25" }
]
}
On versions before 1.20, where the splash is a plain string that cannot carry
per-character styling, a gradient is approximated by prefixing each character
with the nearest legacy § code, and a solid #RRGGBB becomes a single §
code.
Resource packs
A resource pack can add splash texts by providing
assets/customsplash/splashes.txt. Each non-empty line becomes a splash text
and lines starting with # are ignored. Enabled packs are re-read
automatically, and SplashRegistry.reload() forces an immediate refresh.
For mod developers
Call SplashRegistry.add(String) during mod initialization (or any time
before the title screen renders):
import dev.arrbrants.customsplash.SplashRegistry;
public class MyMod implements ModInitializer {
@Override
public void onInitialize() {
SplashRegistry.add("Hello! Fabric!");
SplashRegistry.add("Powered by Mixin", 3); // weight 3
}
}
The API also exposes remove(String), clear(), list(), count(), and
reload() (re-reads the config file and enabled resource packs). pick()
returns the chosen text and pickEntry() returns it together with its colour.
For Forge mods, register splashes during mod construction:
import dev.arrbrants.customsplash.SplashRegistry;
@Mod("mymod")
public class MyMod {
public MyMod() {
SplashRegistry.add("Hello! Forge!");
}
}
NeoForge mods use the injected mod event bus:
import dev.arrbrants.customsplash.SplashRegistry;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
@Mod("mymod")
public class MyMod {
public MyMod(IEventBus modEventBus) {
SplashRegistry.add("Hello! NeoForge!");
}
}
The SplashRegistry API is identical on all loaders.
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ArrBrants' Custom Splash Texts
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
重要更新:模组 ID 现在为 customsplash,不再包含连字符。
NeoForge 使用正则表达式 ^(?=.{2,64}$)[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$ 验证模组 ID。Forge 1.17 及更高版本会根据该 ID 派生 Java 模块名,而模块名同样不允许包含连字符。由于使用旧 ID 构建的 jar 包被两者均拒绝,因此必须移除 custom-splash。升级步骤如下:
- 将
config/custom-splash.json重命名为config/customsplash.json。格式保持不变,因此无需修改文件内容。 - 如果你分发资源包,请将其中的
assets/custom-splash/splashes.txt(或splashes.json)移至assets/customsplash/。
修复
- 模组完全无法在 NeoForge 上加载:加载器报错
Invalid modId found : custom-splash。 - Forge 1.17–1.19.4 也无法加载:报错
Invalid module name: 'custom-splash' is not a Java identifier。 - Forge 分发的 jar 包缺少
pack.mcmeta文件,而 Forge 需要在加载其作为资源包暴露的资源之前拥有该文件。1.20.4 版本会停止并提示Missing metadata in pack,较老版本的 Forge 则会显示加载错误界面。 - Forge 1.20.6 因启动中止:其内置的 Mixin 0.8.5 不识别
JAVA_21兼容性级别。 - 1.20–1.20.4 的 jar 包不再在 1.20.6 上提供自身支持,因为在 1.20.6 中 Forge 解析官方名称时,其 mixin 无法找到目标。
变更
- 每个发布线仅生成一个 jar 包,而非每个版本一个:目前支持的 86 个版本现整合为 14 个下载项,且每个下载项在发布前均已通过 CI 测试启动。
- 生成的配置文件为带有完整注释的参考文档,实现自说明。
- 对于无效值——如无法解析的
color或date、未知的time、超出0.0–1.0范围的chance、非正数的weight——将在日志中报告,而非静默失败。 - 模组声明为仅客户端侧,因此在专用服务器上会被禁用。
新增
- 资源包除
splashes.txt外,还可提供assets/customsplash/splashes.json,使用与配置文件相同的 schema,从而允许资源包不再将每条Splash文本限制为单行纯文本。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧