TesutoAuraLore
TesutoAuraLore 是 AuraSkills 的一个轻量级插件,用于在物品描述中自动显示技能等级要求。
它从 AuraSkills(全局配置 + 每个物品的特定要求)读取要求,并以简洁的格式渲染,例如:
Requires Mining: 6
Требуется Шахтёрство: 6
描述内容会动态更新——无需重启服务器。
✨ 功能特性
- ? 为物品(工具、武器、护甲)添加技能要求描述
- ⚙️ 支持来自
plugins/AuraSkills/config.yml 的全局要求
- ? 支持通过 AuraSkills 命令添加的每个物品的特定要求
- ? 使用
/tesu reload 实现热重载
- ? 自动替换过时的要求行(避免重复)
- ? 支持单个物品包含多个要求
- ? 在合成/铁砧/锻造台预览以及取出结果后正确更新
- ? 使用 AuraSkills messages_xx.yml 中的技能名称(例如
messages_ru.yml)
? 依赖项
- Minecraft 1.21.x(已在 1.21.11 测试通过)
- Java 21
- AuraSkills 2.x
? 安装步骤
-
安装 AuraSkills
-
安装 TesutoAuraLore
-
启动一次服务器
-
在以下位置配置要求:
plugins/AuraSkills/config.yml
-
在以下位置配置插件语言:
plugins/TesutoAuraLore/config.yml
? 本地化
1) 插件语言设置
在以下文件中:
plugins/TesutoAuraLore/config.yml
设置语言代码(默认为英语):
language: en_US
2) 插件语言文件
插件翻译文件存储在此处:
plugins/TesutoAuraLore/lang/
示例:
这些文件控制如下短语:
Requires
- 格式化模板(例如
Requires {skill}: {level})
3) 技能名称来源于 AuraSkills
{skill} 使用 AuraSkills 消息文件进行本地化:
plugins/AuraSkills/messages/messages_xx.yml
示例:
messages_en.yml
messages_ru.yml
因此,如果你的插件语言设置为 ru_RU,TesutoAuraLore 将尝试使用 AuraSkills 的 messages_ru.yml 中的技能名称。
⚙️ 配置 (AuraSkills)
TesutoAuraLore 会直接从 AuraSkills 读取要求。
示例:全局物品要求
requirement:
enabled: true
override_global: true
item:
global:
- STONE_PICKAXE MINING:6
- IRON_PICKAXE MINING:14
- DIAMOND_PICKAXE MINING:25
支持的格式:
MATERIAL SKILL:LEVEL
MATERIAL <自定义彩色文本> SKILL:LEVEL
如果提供了自定义文本,它将原样显示,并且 {skill} 本地化可能不适用(因为你手动覆盖了该短语)。
? 命令
/tesu reload
重新加载要求和语言文件,并更新物品描述栏文字,无需重启服务器。
权限:
tesu.reload
(默认:OP)
? 描述栏文字更新机制
- TesutoAuraLore 添加的旧要求描述栏文字将被移除
- 新的要求将被重新应用
- 防止重复和过时条目
- 可更新玩家背包中已存在的物品
? 本插件不会执行的操作
- ❌ 不会阻止物品使用
- ❌ 不会更改 AuraSkills 的机制
- ❌ 不会强制执行限制
TesutoAuraLore 仅用于视觉展示——它提升清晰度,但不影响游戏逻辑。
? 预期用途
如果你希望玩家能够:
- 立即查看某物品为何需要特定的技能等级
- 在物品上显示一致的属性需求信息
- 支持服务器语言(俄语/英语等),不受客户端设置的影响
TesutoAuraLore
TesutoAuraLore is a lightweight addon for AuraSkills that automatically shows skill level requirements directly in item lore.
It reads requirements from AuraSkills (global config + per-item requirements) and renders them in a clean format like:
Requires Mining: 6
Требуется Шахтёрство: 6
Lore updates dynamically — no server restart required.
✨ Features
- ? Adds skill requirement lore to items (tools, weapons, armor)
- ⚙️ Supports global requirements from
plugins/AuraSkills/config.yml
- ? Supports per-item requirements added via AuraSkills commands
- ? Hot reload with
/tesu reload
- ? Automatically replaces outdated requirement lines (no duplication)
- ? Supports multiple requirements per item
- ? Updates correctly in crafting/anvil/smithing previews and after taking the result
- ? Uses AuraSkills messages_xx.yml for skill names (e.g.
messages_ru.yml)
? Requirements
- Minecraft 1.21.x (tested up to 1.21.11)
- Java 21
- AuraSkills 2.x
? Installation
-
Install AuraSkills
-
Install TesutoAuraLore
-
Start the server once
-
Configure requirements in:
plugins/AuraSkills/config.yml
-
Configure plugin language in:
plugins/TesutoAuraLore/config.yml
? Localization
1) Plugin language setting
In:
plugins/TesutoAuraLore/config.yml
Set the language code (default is English):
language: en_US
2) Plugin language files
Plugin translations are stored here:
plugins/TesutoAuraLore/lang/
Example:
These files control phrases like:
Requires
- formatting template (e.g.
Requires {skill}: {level})
3) Skill names come from AuraSkills
{skill} is localized using AuraSkills message files:
plugins/AuraSkills/messages/messages_xx.yml
Example:
messages_en.yml
messages_ru.yml
So if your plugin language is ru_RU, TesutoAuraLore will try to use AuraSkills messages_ru.yml skill names.
⚙️ Configuration (AuraSkills)
TesutoAuraLore reads requirements directly from AuraSkills.
Example: Global item requirements
requirement:
enabled: true
override_global: true
item:
global:
- STONE_PICKAXE MINING:6
- IRON_PICKAXE MINING:14
- DIAMOND_PICKAXE MINING:25
Supported formats:
MATERIAL SKILL:LEVEL
MATERIAL <custom colored text> SKILL:LEVEL
If custom text is provided, it will be shown as-is, and {skill} localization may not apply (because you override the phrase manually).
? Commands
/tesu reload
Reloads requirements and language files and updates item lore without restarting the server.
Permission:
tesu.reload
(Default: OP)
? How Lore Updates Work
- Old requirement lore added by TesutoAuraLore is removed
- New requirements are re-applied
- Prevents duplicates and outdated lines
- Can update items already in player inventories
? What This Plugin Does NOT Do
- ❌ Does not block item usage
- ❌ Does not change AuraSkills mechanics
- ❌ Does not enforce restrictions
TesutoAuraLore is visual-only — it improves clarity without affecting gameplay logic.
? Intended Use Case
Use TesutoAuraLore if you want players to:
- immediately see why an item requires a certain skill level
- have consistent requirement info on items
- support a server language (RU/EN/etc.) regardless of client settings
评论 0
登录后参与评分
还没有评论,来抢沙发吧