DNF Enhance
(中文描述在下方)
Overview
DNF Enhance adds a gear enhancement system to Minecraft, inspired by Dungeon & Fighter. Weapons, tools and armor can be enhanced step by step at the Enhancement Furnace, from +1 up to a default maximum of +15. Success rates, failure penalties, material costs and the attribute growth curve are defined in one global config file, and the process can be automated with redstone and hoppers.
What Can Be Enhanced
- Melee weapons and tools — attack damage is raised
- Armor — armor value, armor toughness and knockback resistance are raised
- Bows and crossbows — arrow damage is raised
Every level adds a percentage of the item's base value, following a configurable growth curve. The default curve goes from +1 = 2% to +15 = 100%, which doubles the base values at the maximum level. For bows and crossbows, the tooltip shows the current arrow damage bonus directly.
🔥 The Enhancement Furnace
Right-click the furnace to open its interface, which holds three slots and an information panel:
- Left slot — Furnace Carbon or Advanced Furnace Carbon (material)
- Middle slot — the item to be enhanced
- Right slot — Equipment Protection Stone (optional)
The panel shows the current and next level, the success rate, the carbon cost, the failure penalty, whether a protection stone is loaded, and the redstone state.
Enhancement is done one level at a time: each action consumes the required carbon and rolls the dice once. While the furnace is working it lights up — the front texture switches to burning, the block emits light, and smoke, flame and enchantment particles appear around it. A manual attempt keeps it lit for about two seconds; sounds and particles give immediate feedback on success and failure.
Hopper Integration
- Top face — inserts items to be enhanced. Insert only; items cannot be extracted from the top.
- Left side (viewed from the front) — accepts Furnace Carbon and Advanced Furnace Carbon.
- Right side (viewed from the front) — accepts Equipment Protection Stones.
- Bottom face — output. The bottom hopper only extracts an item after auto-enhancement has reached its target level. Manually enhanced items and items still being processed are never pulled out.
Enhancement Rules (Default Values)
| Target level | Success rate | On failure | Carbon cost |
|---|---|---|---|
| +1 – +3 | 100% | none | 1 – 3 |
| +4 – +7 | 90% – 70% | level –1 | 4 – 7 |
| +8 – +10 | 60% – 40% | level –3 | 8 – 10 |
| +11 – +13 | 30% – 20% | item destroyed | 12 – 16 |
| +14 – +15 | 15% / 10% | item destroyed | 18 / 20 |
- Failures from +4 to +10 only lower the level; from +11 onward an unprotected failure destroys the item.
- An Equipment Protection Stone prevents destruction: when a destroying failure occurs with a stone loaded, the item and its level are kept and one stone is consumed (the consumption can be disabled in the config).
- Using Advanced Furnace Carbon as the material adds 10% success to that attempt.
- While the enhancer is under the Luck effect — for example a luck potion from another mod or
/effect— every attempt gains 10% success. Manual enhancement checks the player who performed the action; auto-enhancement checks the player who started it, as long as they are online. - The maximum level equals the length of the configuration lists (15 by default). Extending the lists raises the cap.
Enhanced Item Display
An enhanced item is named "+N item name". Only the "+N" prefix is colored and bold; the original name keeps its own color and formatting. The prefix color depends on the level:
| Level | Prefix color |
|---|---|
| +1 – +7 | white |
| +8 – +10 | orange |
| +11 – +13 | red |
| +14 – +15 | rainbow |
From +11 the prefix is animated inside the tooltip: +11 – +13 run a red highlight that travels along the text, +14 – +15 show a flowing rainbow. Outside tooltips (for example item names on the ground) the prefix keeps its static color. Enhanced items do not receive an enchantment glint and their rarity is not changed.
Renaming an enhanced item on an anvil keeps the prefix. The prefix is always rebuilt from the real level, so typing "+99" into the name cannot fake a higher level. The prefix row is rebuilt when the tooltip is rendered and does not conflict with similar prefix rows added by other mods.
Auto-Enhancement
Auto-enhancement performs one attempt per second until the item reaches the selected target level:
- It only runs while the furnace receives a redstone signal. Cutting the signal pauses the process; the target level and progress are kept, and it resumes by itself when power returns. The furnace fire goes out within about two seconds of a pause, which makes the paused state visible at a glance.
- If the next attempt would destroy the item and no protection stone is loaded, the process stops and a chat message is sent to the player who started it. The message is not broadcast to other players.
- Running out of carbon does not stop the process. The furnace waits and retries as soon as hoppers refill it.
- When the target level is reached, the item is handed over to the bottom hopper.
Mobs and Drops
- Hostile mobs that spawn naturally (spawner spawns excluded) have a 15% chance by default to spawn carrying enhanced gear: either a weapon or an armor piece with a level between +1 and +10. Lower levels are much more common. The item always drops when the mob dies, with its enhance level preserved.
- If a player kills a mob that was carrying enhanced gear, the mob has a 20% base chance to drop 1 – 3 Furnace Carbon. Every Looting level on the weapon adds 5%.
Command
/dnfenhance enhance <0~99> — sets the enhance level of the held item to the given value (0 removes enhancement). Requires permission level 2 (operator in multiplayer, cheats enabled in singleplayer).
Recipes
Enhancement Furnace (shaped):
stone iron ingot stone
iron ingot anvil iron ingot
stone furnace stone
Furnace Carbon (shapeless): 4 coal + 2 copper ingots → 8 Furnace Carbon
Advanced Furnace Carbon (shaped): 1 gold ingot surrounded by 8 Furnace Carbon
Equipment Protection Stone (shapeless): 1 diamond + 2 gold ingots + 1 blaze powder
🔧 Configuration
All values are stored in the global file config/dnfenhance.toml, which is shared across worlds. The file is reloaded automatically when saved and can also be edited from the in-game config screen (Mods → DNF Enhance → Config). The options cover the per-level success rates, failure penalties, carbon costs and growth curve, the Advanced Furnace Carbon and Luck bonuses, the chances for mobs to carry enhanced gear and to drop carbon, and whether protection stones are consumed on use.
简介
DNF Enhance 是一个受《地下城与勇士》启发的装备强化模组。武器、工具和盔甲可以在强化炉中逐级强化,从 +1 一直到默认上限 +15。成功率、失败惩罚、材料消耗与属性成长曲线都集中在一个全局配置文件中,并且整个强化过程可以通过红石与漏斗自动化。
⚔️ 可以强化哪些物品
- 近战武器与工具——提升攻击伤害
- 盔甲——提升盔甲值、盔甲韧性与击退抗性
- 弓与弩——提升箭矢伤害
每一级都会按物品基础值的一定百分比追加属性,百分比由可配置的成长曲线决定。默认曲线从 +1 = 2% 增长到 +15 = 100%,满级时基础属性翻倍。弓弩类武器会在物品提示中直接显示当前的箭矢伤害加成。
强化炉
右键强化炉即可打开界面,包含三个槽位与一块信息面板:
- 左侧槽位——炉岩碳或高级炉岩碳(材料)
- 中间槽位——待强化的装备
- 右侧槽位——装备保护石(可选)
面板会显示当前等级与下一级、成功率、炉岩碳消耗、失败惩罚、是否已放入保护石,以及红石供能状态。
强化按等级逐次进行:每操作一次消耗对应数量的炉岩碳并判定一次结果。炉子工作时会被点亮——正面纹理切换为燃烧状态、方块发出光照,周围出现烟雾、火焰与附魔粒子。手动强化一次约点亮两秒,成功与失败均有明确的音效和粒子反馈。
漏斗接入
- 顶面——投入待强化的装备。仅允许插入,不可从顶部抽取。
- 正面视角的左侧面——接收炉岩碳与高级炉岩碳。
- 正面视角的右侧面——接收装备保护石。
- 底面——输出。底部的漏斗只会取走“自动强化达标完成”的装备;手动强化产物与正在处理的装备不会被抽走。
强化规则(默认值)
| 目标等级 | 成功率 | 失败惩罚 | 炉岩碳 |
|---|---|---|---|
| +1 ~ +3 | 100% | 无 | 1 ~ 3 |
| +4 ~ +7 | 90% ~ 70% | 掉 1 级 | 4 ~ 7 |
| +8 ~ +10 | 60% ~ 40% | 掉 3 级 | 8 ~ 10 |
| +11 ~ +13 | 30% ~ 20% | 装备损毁 | 12 ~ 16 |
| +14 ~ +15 | 15% / 10% | 装备损毁 | 18 / 20 |
- +4 至 +10 失败只掉等级;+11 起若未放保护石,失败会直接损毁装备。
- 装备保护石可防止损毁:触发损毁级失败时若炉内有保护石,装备与等级都保留,并消耗 1 个保护石(是否消耗可在配置中关闭)。
- 使用高级炉岩碳作为材料时,本次强化成功率 +10%。
- 强化者处于幸运效果下时(例如其他模组的幸运药水或
/effect指令),每次强化成功率 +10%。手动强化以操作者为判断对象,自动强化以启动者为准(需在线)。 - 强化上限等于配置列表的长度(默认 15),拉长列表即可提高上限。
强化物品的显示
强化后的物品名称为“+N 物品名”。只有“+N”前缀会染色并加粗,物品原名保持原本的颜色与样式。前缀颜色按等级划分:
| 等级 | 前缀颜色 |
|---|---|
| +1 ~ +7 | 白色 |
| +8 ~ +10 | 橙色 |
| +11 ~ +13 | 红色 |
| +14 ~ +15 | 七彩 |
+11 起前缀在物品提示中带动画:+11 ~ +13 为沿文字循环移动的红色高光,+14 ~ +15 为流动彩虹。提示以外的场景(如地上的物品名)使用静态配色。强化物品不会被附上附魔光效,稀有度也不会被改动。
在铁砧上给强化物品改名会保留前缀。前缀始终按真实等级重建,因此在名字里输入“+99”也无法伪造更高的等级。前缀行在渲染物品提示时重建,不会与其他模组添加的前缀类提示冲突。
自动强化
自动强化会每秒执行一次,直到装备达到设定的目标等级:
- 只在强化炉接收到红石信号时运行。断开信号即暂停,目标等级与进度都会保留,恢复供能后自动继续;暂停后炉火约两秒内熄灭,方便直接看出工作状态。
- 若下一步可能损毁装备且炉内没有保护石,自动强化会停止,并向启动者本人发送一条聊天提示,不会广播给其他玩家。
- 炉岩碳耗尽不会中断流程:炉子会继续等待,漏斗补料后自动重试。
- 达到目标等级后,装备交给底部漏斗取出。
怪物与掉落
- 自然生成的敌对生物(刷怪笼产物除外)默认有 15% 概率携带强化装备出现:一把武器或一件盔甲,强化等级在 +1 ~ +10 之间,低级远比高级常见。该装备在生物死亡时必定掉落,强化等级完整保留。
- 若玩家击杀的敌对生物身上携带强化装备,则有 20% 的基础概率掉落 1 ~ 3 个炉岩碳,武器上的抢夺附魔每级再 +5%。
命令
/dnfenhance enhance <0~99>——把主手装备的强化等级设置为指定值(0 表示清除强化)。需要权限等级 2(联机为管理员,单机需开启作弊)。
配方
强化炉(有序合成):
石头 铁锭 石头
铁锭 铁砧 铁锭
石头 熔炉 石头
炉岩碳(无序合成):4 个煤炭 + 2 个铜锭 → 8 个炉岩碳
高级炉岩碳(有序合成):1 个金锭居中,周围环绕 8 个炉岩碳
装备保护石(无序合成):1 个钻石 + 2 个金锭 + 1 个烈焰粉
🔧 配置
所有数值集中在全局配置文件 config/dnfenhance.toml(跨存档共用)。保存文件即自动热重载,也可以在游戏内界面修改(模组列表 → DNF Enhance → 配置)。可调项包括各目标等级的成功率、失败惩罚、炉岩碳消耗与成长曲线、高级炉岩碳与幸运效果加成、怪物携带强化装备与掉碳概率,以及保护石是否按次消耗。