
功能特性
- 自定义渐变:使用
<gradient:#RRGGBB:#RRGGBB>文本</gradient> 创建平滑的颜色过渡
- 彩虹文字:自动彩虹渐变效果,使用
<rb>文本</rb>
- 十六进制颜色:支持完整的 RGB 颜色,使用
&#RRGGBB 格式
- 旧版颜色代码:标准 Minecraft 颜色代码(
&a、&c 等)
- 文本格式化:加粗(
&l)、斜体(&o)、下划线(&n)、删除线(&m)、乱码(&k)
- 随机服务器图标:可选功能,用于在多个服务器图标之间循环切换
格式化指南
渐变语法
- 自定义渐变:
<gradient:#FF0000:#FFFF00>你的文本</gradient> - 从红色平滑过渡到黄色
- 彩虹渐变:
<rb>你的文本</rb> - 自动彩虹效果
颜色代码
- 十六进制颜色:
&#FF5500 - 任意 RGB 颜色
- 旧版代码:
&a(绿色)、&c(红色)、&b(青色)、&e(黄色)等
格式化代码
&l - 加粗
&o - 斜体
&n - 下划线
&m - 删除线
&k - 乱码(随机字符)
&r - 重置所有格式
组合格式
将格式化代码放在渐变标签之前:
&l<gradient:#FF0000:#FFFF00>加粗渐变文本</gradient>
&o<rb>斜体彩虹文本</rb>
配置说明
配置文件位于 `./config/enhanced_motd.json`,包含多个选项。可以通过在游戏中运行 `/reload` 命令来重新加载配置。(不会修改原版 `/reload` 命令的功能,只是在其基础上挂钩执行)。
-
"motds":一个可能的 MOTD 列表列表!模组会从列表的每一部分中随机选择一个 MOTD 并拼接起来,生成完整的 MOTD。此功能主要用于当你希望包含一部分独立于随机内容的静态信息时。
-
"use_randomized_icons":一个布尔值,用于启用或禁用随机图标功能。默认为 true。
-
"icons":服务器图标路径或 HTTPS URL 的列表。路径相对于服务器目录。URL 必须使用 HTTPS 协议以确保安全。所有图标必须是 64x64 像素的 PNG 图片。
-
"log_when_loaded":一个布尔值,指示是否在每次重载时记录日志。默认关闭。
-
"CONFIG_VERSION_DO_NOT_TOUCH_PLS":模组版本号——请勿修改。
配置示例
{
"motds": [
[
"&l<rb>⚡ RAINBOW SERVER ⚡</rb>",
"&l<gradient:#FF0000:#FFFF00>» FIRE REALM «</gradient>",
"&l<gradient:#00FFFF:#0000FF>≋ OCEAN VIBES ≋</gradient>"
],
[
"&r&o- Join the &l<rb>adventure</rb>&r&n!",
"&r- <gradient:#00AA00:#005500>Survival</gradient> | <gradient:#FF0000:#AA0000>PvP</gradient>",
"&r&o- Fresh <gradient:#00FF00:#FFD700>world</gradient> just released!"
]
],
"use_randomized_icons": true,
"icons": [
"server-icon.png",
"server-icon-2.png",
"https://dummyimage.com/64x64/000/fff.png&text=Icon3"
],
"log_when_loaded": false
}
安装步骤
- 从 Releases 页面下载模组 JAR 文件
- 将其放入服务器的
mods 文件夹中
- 启动服务器——它将自动生成默认配置
- 编辑
config/enhanced_motd.json 以自定义你的 MOTDs
- 使用
/reload 应用更改而无需重启服务器
环境要求
- NeoForge 26.1+ 对应 Minecraft 26.1.x
- Java 25+
- 仅限服务端

Features
- Custom Gradients: Create smooth color transitions using
<gradient:#RRGGBB:#RRGGBB>text</gradient>
- Rainbow Text: Automatic rainbow gradients with
<rb>text</rb>
- Hex Colors: Full RGB color support using
&#RRGGBB format
- Legacy Color Codes: Standard Minecraft color codes (
&a, &c, etc.)
- Text Formatting: Bold (
&l), italic (&o), underline (&n), strikethrough (&m), obfuscated (&k)
- Randomized Server Icons: Optional feature to cycle through multiple server icons
Formatting Guide
Gradient Syntax
- Custom Gradient:
<gradient:#FF0000:#FFFF00>Your Text</gradient> - Smooth transition from red to yellow
- Rainbow Gradient:
<rb>Your Text</rb> - Automatic rainbow effect
Color Codes
- Hex Colors:
&#FF5500 - Any RGB color
- Legacy Codes:
&a (green), &c (red), &b (aqua), &e (yellow), etc.
Formatting Codes
&l - Bold
&o - Italic
&n - Underlined
&m - Strikethrough
&k - Obfuscated (random characters)
&r - Reset all formatting
Combining Formats
Place formatting codes before gradient tags:
&l<gradient:#FF0000:#FFFF00>Bold Gradient Text</gradient>
&o<rb>Italic Rainbow Text</rb>
Config
The Config file, found in `./config/enhanced_motd.json`, includes several options. The config can be reloaded by running the `/reload` command in-game. (Does not modify the vanilla `/reload` command, just hooks on to it).
-
"motds": A list of possible MOTDs lists! The mod will pick a random MOTD from every part of the list and concatenate them, producing a full MOTD. This feature is mainly so if you would like to contain a static part of information independent of a random one.
-
"use_randomized_icons": A boolean either enabling or disabling the randomized icon feature. Defaults to true.
-
"icons": A list of paths to server icons or HTTPS URLs. Paths are relative to the server directory. URLs must use HTTPS protocol for security. All icons must be 64x64 PNG images.
-
"log_when_loaded": A boolean telling whether to log for every reload. Off by default.
-
"CONFIG_VERSION_DO_NOT_TOUCH_PLS": Mod version --please do not touch it.
Example Config
{
"motds": [
[
"&l<rb>⚡ RAINBOW SERVER ⚡</rb>",
"&l<gradient:#FF0000:#FFFF00>» FIRE REALM «</gradient>",
"&l<gradient:#00FFFF:#0000FF>≋ OCEAN VIBES ≋</gradient>"
],
[
"&r&o- Join the &l<rb>adventure</rb>&r&n!",
"&r- <gradient:#00AA00:#005500>Survival</gradient> | <gradient:#FF0000:#AA0000>PvP</gradient>",
"&r&o- Fresh <gradient:#00FF00:#FFD700>world</gradient> just released!"
]
],
"use_randomized_icons": true,
"icons": [
"server-icon.png",
"server-icon-2.png",
"https://dummyimage.com/64x64/000/fff.png&text=Icon3"
],
"log_when_loaded": false
}
Installation
- Download the mod JAR from the releases
- Place it in your server's
mods folder
- Start the server - it will generate a default config
- Edit
config/enhanced_motd.json to customize your MOTDs
- Use
/reload to apply changes without restarting
Requirements
- NeoForge 26.1+ for Minecraft 26.1.x
- Java 25+
- Server-side only
评论 0
登录后参与评分
还没有评论,来抢沙发吧