Tooltips DLP8
一款简单的客户端模组,可为 Minecraft 物品添加可自定义的工具提示(Tooltip)。使用资源包实现轻松分发和配置!
功能特性
- 支持十六进制颜色代码(#RRGGBB)的可自定义工具提示
- 支持换行符(#n)
- 仅依赖资源包 - 便于轻松分发配置
- 支持多资源包 - 可从多个资源包加载工具提示
- 支持注释的 JSONC 配置文件
/tooltips reload 命令用于重新加载配置
- CivLabs 职业预设颜色
- 自动检测并加载资源包
- 在命令中显示资源包名称
配置
资源包方法
在 assets/tooltips-dlp8/[你的文件名].jsonc 中创建包含工具提示配置的资源包:
重要提示:请使用不同的文件名(例如 civlabs.jsonc、my-server.jsonc 等),而不是 tooltips.jsonc,以避免与模组内置的工具提示发生冲突。
{
// CivLabs 职业示例工具提示:你可以使用 // 或 /* */ 添加注释
"minecraft:diamond_sword": "#e03e2dGuardsman's Weapon#n#resetA sharp blade forged by skilled hands",
"minecraft:golden_apple": "#b96ad9Healer's Blessing#n#resetRestores health and grants temporary effects"
}
多资源包支持
该模组支持同时从多个资源包加载工具提示。如果存在相同的物品 ID,后续资源包中的工具提示将覆盖前面的工具提示。
颜色代码
#RRGGBB - 十六进制颜色(例如 #ff0000 表示红色)
#reset - 重置为默认工具提示颜色
#n - 换行
特殊化实验班(Specialization Experiment)职业颜色
#7e8c8d - 铁匠 (Blacksmith)(灰色)
#f1c40f - 建造者 (Builder)(黄色)
#2dc26b - 农夫 (Farmer)(绿色)
#e03e2d - 卫兵 (Guardsman)(红色)
#b96ad9 - 治疗师 (Healer)(紫色)
#3598db - 图书管理员 (Librarian)(蓝色)
#ecf0f1 - 矿工 (Miner)(浅灰色)
请参阅此资源包以获取示例:SpEx Resource Pack
命令
/tooltips reload - 从资源包重新加载配置并显示已加载的资源包
/tooltips help - 显示帮助、当前状态以及已加载的资源包
命令输出将显示:
- 已加载的工具提示数量
- 包含工具提示的资源包数量
- 已加载的资源包名称
非常适合角色扮演服务器、自定义服务器,或为你的物品添加自定义信息!
Tooltips DLP8
A simple client-side mod that adds customizable tooltips to Minecraft items. Uses resource packs for easy distribution and configuration!
Features
- Customizable tooltips with hex colors (#RRGGBB)
- Line break support (#n)
- Resource pack only - Distribute configurations easily
- Multiple resource pack support - Load tooltips from multiple packs
- JSONC configuration with comments
/tooltips reload command to reload configuration
- Predefined colors for CivLabs classes
- Automatic resource pack detection and loading
- Resource pack name display in commands
Configuration
Resource Pack Method
Create resource packs with tooltip configurations in assets/tooltips-dlp8/[your-filename].jsonc:
Important: Use different filenames (like civlabs.jsonc, my-server.jsonc, etc.) instead of tooltips.jsonc to avoid conflicts with the mod's built-in tooltips.
{
// Example tooltips for CivLabs classes: You can add comments with // or /* */
"minecraft:diamond_sword": "#e03e2dGuardsman's Weapon#n#resetA sharp blade forged by skilled hands",
"minecraft:golden_apple": "#b96ad9Healer's Blessing#n#resetRestores health and grants temporary effects"
}
Multiple Resource Packs
The mod supports loading tooltips from multiple resource packs simultaneously. Tooltips from later packs will override earlier ones if they have the same item ID.
Color Codes
#RRGGBB - Hex color (e.g., #ff0000 for red)
#reset - Reset to default tooltip color
#n - New line
Specialization Experiment Classes Colors
#7e8c8d - Blacksmith (Gray)
#f1c40f - Builder (Yellow)
#2dc26b - Farmer (Green)
#e03e2d - Guardsman (Red)
#b96ad9 - Healer (Purple)
#3598db - Librarian (Blue)
#ecf0f1 - Miner (Light Gray)
See this resource pack for an example: SpEx Resource Pack
Commands
/tooltips reload - Reload configuration from resource packs and show loaded packs
/tooltips help - Show help, current status, and loaded resource packs
The commands will display:
- Number of loaded tooltips
- Number of resource packs with tooltips
- Names of loaded resource packs
Perfect for roleplay servers, custom servers, or adding custom information to your items!
评论 0
登录后参与评分
还没有评论,来抢沙发吧