Respec Skill 模组
轻松重置并重新分配你在 Pufferfish's Skills 中使用的技能!
服务端模组。玩家输入 /respec 即可打开一个可点击的菜单,列出服务器上所有 Puffish 技能分类;每个分类重置所需消耗的物品数量可在配置中自定义。分类会自动发现,因此无需额外设置即可支持新的技能树。

命令
| 命令 |
权限 |
描述 |
/respec |
所有玩家 |
打开聊天菜单,列出所有 Puffish 分类,并附带可点击的 [Reset](重置)按钮。 |
/respec <namespace:category> |
所有玩家 |
直接重置指定的分类。由菜单中的 [Reset] 按钮调用。 |
/respec prestige |
所有玩家 |
列出已配置的晋升路径。不符合条件的路径将显示为灰色不可用。 |
/respec prestige <from_category> |
所有玩家 |
从指定分类晋升至其配置的目标分类。 |
/respec reload |
Level 3 (op) |
从磁盘重新加载 config/respec-skill.properties 配置文件。 |
工作原理
1. 运行 /respec
玩家会看到一个聊天菜单,列出服务器上加载的所有 Puffish 技能分类,并在可点击的 [Reset] 按钮旁显示所需消耗。
2. 点击 [Reset](或运行 /respec <namespace:category>)
模组会检查:
- 玩家在该分类中的总技能点数是否达到要求(
min_level_to_respec)
- 玩家是否已过冷却时间(如果已配置)
- 玩家的物品栏中是否有足够的消耗品
如果全部通过,则扣除消耗品,清除该分类的技能点,并返还一部分之前的经验值(xp_reduction_factor)。
配置
编辑 config/respec-skill.properties。在游戏中使用 /respec reload 重新加载(需要 Level 3 权限)。
# 玩家在重置某个分类之前必须在该分类中拥有的最小总技能点数。
min_level_to_respec = 20
# 重置后返还的分类经验值比例(0.0 = 失去全部,1.0 = 不失去任何经验)。
xp_reduction_factor = 0.2
# 两次重置之间的冷却时间(秒)(0 = 无冷却时间)。按玩家独立计算,仅保存在内存中;服务器重启后重置。
cooldown_seconds = 0
# 应用于所有没有下方覆盖设置的默认消耗品。
# 格式: <item_id>, <count>
default_cost = minecraft:emerald, 16
# 可选:针对特定分类的消耗品覆盖设置。没有覆盖设置的分类将使用 default_cost。
# cost.puffish_skills:combat = minecraft:diamond, 4
# cost.puffish_skills:mining = minecraft:emerald, 32
你不需要列出每个分类。服务器上加载的每个 Puffish 分类都会被自动发现,并自动出现在 /respec 菜单中。
晋升(可选)
一种从一个技能分类到另一个技能分类的单向、不可逆的晋升。在同一个文件中配置路径:
# 格式: prestige.<n> = <from_category>, <to_category>, <min_points_in_from>, <xp_carryover_factor>, <cost_item>, <cost_count>
prestige.1 = puffish_skills:combat, puffish_skills:advanced_combat, 50, 0.4, minecraft:netherite_ingot, 1
prestige.2 = puffish_skills:mining, puffish_skills:master_mining, 75, 0.6, minecraft:netherite_ingot, 2
成功晋升后,源分类将被清空,目标分类将获得 currentXp × xp_carryover_factor 的经验值,并扣除消耗品。如果配置了任何晋升路径,/respec 将在输出内容的底部显示一个指向晋升菜单的可点击链接。有关命令语法,请参阅上面的命令部分。
对于服务器/整合包
纯服务端模组;客户端无需安装该模组。欢迎将其包含在整合包中。感谢注明出处,但非强制要求。
1.x 旧版文档
1.x 版本使用了不同的机制:制作一个 Respec Scroll(重铸卷轴),右键点击放置在配置的基础方块上的 Skill Altar(技能祭坛,即放置于基础方块上的 lodestone 磁石)。2.0 移除了所有这些内容,改为使用上述的 /respec 命令。
如果你正在使用 1.x 且需要相关文档,请参见下文。升级到 2.x 需要重新生成配置文件(respec-skill.toml → respec-skill.properties)。
1.x 文档
功能
- 技能重铸系统: 重置单个技能分类并取回经验值以重新分配。
- 晋升系统: 在高等级时从一个技能树过渡到另一个技能树。
- 可配置: 设置最低等级要求和经验保留率。
工作原理
-
使用以下配方制作 Respec Scroll(重铸卷轴):

-
建造 Skill Altar(技能祭坛):将一个配置好的技能方块放在顶部,并在其上放置一块 lodestone(磁石)。例如 Default Skill Tree 的设置:

-
手持卷轴右键点击磁石以重置该分类的技能点。
-
晋升: 在高等级时,通过配置的 from → to 映射关系过渡到高级技能树。
1.x 配置 (TOML)
# Respec Skill Mod Configuration
config_version = 2
min_level_to_respec = 20
xp_reduction_factor = 0.2
[skill_altar_map]
"minecraft:diamond_block" = "combat"
"minecraft:iron_block" = "mining"
[prestige_mappings]
# "combat" = "advanced_combat,true,50,0.4"
# "mining" = "master_mining,true,75,0.6"
客户端注意事项(仅限 1.x): 为了在创造模式物品栏或 REI 中看到 Respec Scroll(重铸卷轴),模组也必须安装在客户端上。2.x 完全为服务端模组。
Respec Skill Mod
Reset and reallocate your skills used in Pufferfish's Skills easily!
Server-side mod. Players type /respec to open a clickable menu of every Puffish skill category on the server; each costs a configurable item. Categories are auto-discovered, so no setup is needed to support new skill trees.

Commands
| Command |
Permission |
Description |
/respec |
All players |
Opens the chat menu listing every Puffish category with a clickable [Reset] button. |
/respec <namespace:category> |
All players |
Respecs the given category directly. Used by the menu's [Reset] button. |
/respec prestige |
All players |
Lists configured prestige paths. Ineligible paths show greyed out. |
/respec prestige <from_category> |
All players |
Ascends from the given category into its configured target. |
/respec reload |
Level 3 (op) |
Reloads config/respec-skill.properties from disk. |
How It Works
1. Run /respec
Players see a chat menu listing every Puffish skill category loaded on the server, with the cost shown next to a clickable [Reset] button.
2. Click [Reset] (or run /respec <namespace:category>)
The mod checks:
- Player has enough total skill points in that category (
min_level_to_respec)
- Player is past the cooldown (if configured)
- Player has enough of the cost item in their inventory
If all pass, the item is consumed, the category is erased, and a fraction of the previous XP is returned (xp_reduction_factor).
Configuration
Edit config/respec-skill.properties. Reload in-game with /respec reload (requires permission level 3).
# Minimum total skill points a player must have in a category before they can respec it.
min_level_to_respec = 20
# Fraction of category XP returned after respec (0.0 = lose all, 1.0 = lose none).
xp_reduction_factor = 0.2
# Cooldown in seconds between respecs (0 = no cooldown). Per player, in-memory only; resets on server restart.
cooldown_seconds = 0
# Default cost applied to every category that doesn't have an override below.
# Format: <item_id>, <count>
default_cost = minecraft:emerald, 16
# Optional: per-category cost overrides. Categories without an override use default_cost.
# cost.puffish_skills:combat = minecraft:diamond, 4
# cost.puffish_skills:mining = minecraft:emerald, 32
You do not need to list each category. Every Puffish category loaded on the server is auto-discovered and appears in /respec automatically.
Prestige (optional)
A one-way irreversible ascension from one skill category into another. Configure paths in the same file:
# Format: prestige.<n> = <from_category>, <to_category>, <min_points_in_from>, <xp_carryover_factor>, <cost_item>, <cost_count>
prestige.1 = puffish_skills:combat, puffish_skills:advanced_combat, 50, 0.4, minecraft:netherite_ingot, 1
prestige.2 = puffish_skills:mining, puffish_skills:master_mining, 75, 0.6, minecraft:netherite_ingot, 2
On a successful prestige, the source category is erased, the target category gains currentXp × xp_carryover_factor, and the cost is consumed. If any prestige paths are configured, /respec shows a clickable link to the prestige menu at the bottom of its output. See the Commands section above for the command syntax.
For Servers/Modpacks
Pure server-side; clients do not need the mod. Feel free to include in modpacks. Credit appreciated but not required.
1.x Legacy
The 1.x versions used a different mechanic: a craftable Respec Scroll right-clicked onto a Skill Altar (a lodestone placed on a configured base block). 2.0 removed all of that in favor of the /respec command described above.
If you are on 1.x and need that documentation, see below. Upgrading to 2.x will require regenerating the config (respec-skill.toml → respec-skill.properties).
1.x docs
Features
- Skill Respec System: Reset individual skill categories and get back XP to reallocate.
- Prestige System: Transition from one skill tree to another at high levels.
- Configurable: Set minimum levels and XP retention rates.
How it worked
-
Craft a Respec Scroll with this recipe:

-
Build a Skill Altar by placing a configured skill block with a lodestone on top. Example setup for the Default Skill Tree:

-
Right-click the lodestone with the scroll to reset that category's points.
-
Prestige: at high levels, transition into advanced trees via configured from → to mappings.
1.x config (TOML)
# Respec Skill Mod Configuration
config_version = 2
min_level_to_respec = 20
xp_reduction_factor = 0.2
[skill_altar_map]
"minecraft:diamond_block" = "combat"
"minecraft:iron_block" = "mining"
[prestige_mappings]
# "combat" = "advanced_combat,true,50,0.4"
# "mining" = "master_mining,true,75,0.6"
Client-side note (1.x only): to see the Respec Scroll in the creative inventory or in REI, the mod also had to be installed client-side. 2.x is fully server-side.
评论 0
登录后参与评分
还没有评论,来抢沙发吧