Tinkers' Devotion
Tinkers' Devotion:真正的匠魂集成与沉浸体验!原版工具、武器和护甲在配方、战利品、怪物装备及村民交易中均替换为对应的匠魂物品。你的 tinkering(锻造/改装)没有界限,世界理应反映这一点!
本模组设计为可扩展的,因此替换系统应能自动与大多数模组兼容!大多数替换系统均可切换开关、按物品类型限定范围,或按模组列入黑名单。详见下方的配置部分。
功能
1. 怪物装备
生成时携带原版工具/护甲的怪物将改为生成对应的匠魂物品,每次生成均为独立随机,材料偏向于相同等级。这影响护甲、近战与远程武器。有些模组会在怪物生成后为其装备物品(例如守卫村民);使用 replaceDeferredSpawnEquipment 也可以捕获这些情况(默认关闭)。
2. 战利品表
宝箱战利品、钓鱼池和怪物掉落中的原版工具、武器和护甲将被替换为同等级的匠魂对应物品。预附魔物品的附魔将作为交换的一部分转换为加权随机的匠魂修饰符。
3. 合成配方
禁用以原版工具、护甲和远程武器为输出的合成配方(通过 Mantle 实现)。接受原版工具作为输入的合成配方(例如需要弓的发射器)将被重写,以接受同等级的匠魂对应物品。此设计旨在适用于所有要求原版物品作为输入的模组合成配方。
强烈建议使用 JEI,因为它会在工具提示中以层级提示显示每个槽位的候选匠魂工具。
4. 村民交易
所有涉及此类物品的村民交易(例如盔甲商、工具商、渔夫)都将替换为生成时的确定性交易(例如:工具商的铁剑交易将被替换为 2 级匠魂剑对应物)。流浪商人也会以相同方式处理。
5. 自定义模组物品支持
上述 4 个系统仅在原版物品上触发,并且默认不触碰模组物品,因为模组构建其工具的方式不同。我支持包含任何模组物品,只需在 config/tinkersdevotion/item_aliases.json 中添加一个原版对应物即可,例如 "twilightforest:steeleaf_pickaxe": "minecraft:iron_pickaxe"。现在钢叶镐将由匠魂铁镐对应物替换,并在战利品、怪物、交易和配方中被替换!它们自己的合成配方也会被禁用,与原版的处理方式相同。只有匠魂物品无法被别名化。
硬核内容
如果你只想玩游戏,请直接跳到下方的配置部分。
剧透
一般流程
模组的核心是一个共享的 tryReplace() 函数:输入原版物品,输出匠魂对应物(匹配类别、加权材料、附魔转换为修饰符)。其他一切只是将物品传入其中的钩子。
四个入口点向 tryReplace() 提供数据:
- 首次世界加载: 扫描所有已加载的配方,编写带有匠魂感知替换功能的生成数据包,并自动重新加载。
- 怪物生成:
EntityJoinLevelEvent处理器会交换怪物槽位中的任何原版物品。 - 战利品生成: Forge Global Loot Modifier 对结果列表执行相同的替换。
- 村民交易滚动: 交易列表在注册时被包装,因此交易结果会通过相同的替换逻辑。
由于每个钩子都收敛到同一个 tryReplace(),怪物的钻石斧和宝箱中的钻石斧会以相同的方式随机生成。
选择材料:80 / 10 / 10 分配 (可配置)
我们选择一个与原版物品类别匹配的匠魂工具(剑/镐类型等),然后使用加权分配为每个部件随机选择材料:
- 80% 标准: 为该层级手工选择的匠魂材料,选择结果是自然的感觉。
- 10% 同层级随机: 层级内的多样性。
- 10% 任意层级随机: 跨层级差异,上限为可配置的最大层级(默认钻石),以免你在游戏早期获得随机的黑铜僵尸。
完整的标准映射如下:
| 原版层级 | 工具标准 | 护甲标准 |
|---|---|---|
| 木制 | tconstruct:wood |
- |
| 石制 | tconstruct:rock |
- |
| 皮革 | - | tconstruct:copper |
| 铜 | tconstruct:copper |
tconstruct:copper |
| 铁 / 链甲 | tconstruct:iron |
tconstruct:iron |
| 金 | tconstruct:rose_gold |
tconstruct:gold |
| 钻石 | tconstruct:cobalt |
tconstruct:cobalt |
| 下界合金 | tconstruct:hepatizon |
tconstruct:hepatizon |
铜没有自己的匠魂工具层级,因此它保持 tconstruct:copper 为标准,并匹配为铁(即铜替换物将约 80% 显示为铜,其余为铁层级)。
附魔 -> 匠魂修饰符
预附魔的原版物品会将其附魔转换为匠魂修饰符。
- 预算: 求和原版附魔等级,取
ceil(sqrt(totalLevels x 4)),上限为 7。锋利 V 耐久 III 经验修补 I 的预算约为 6。 - 修饰符池: 基于你安装的匠魂配方构建,因此附加修饰符会自动包含。未满足前置条件的修饰符会被过滤。
- 专业权重: 专业修饰符(专门应用于一种“类型”的工具,例如锋利)比通用修饰符的可能性高约 8 倍。可调。
- 花费预算: 在每一步中,要么升级现有修饰符(默认 65% 几率),要么选择一个新的。如果预算溢出,则添加奖励槽修饰符。
配置文件中的跳过列表可以排除不想要的修饰符(默认包括 netherite、creative_slot、draconic 等)。
兼容性与可扩展性
- TC 扩展: 通过标准标签和 Forge 工具操作自动拾取。已与 Tinkers' Things、TCIntegrations、Tinkers Levelling Addon 和 Tinkers' Thinking 测试兼容。
- 扩展材质: 从
MaterialRegistry实时读取。新增材质掉落即具备资格。自定义阶位的材质可用于护甲和远程武器;工具则需要映射到原版阶位。 - 模组配方: 与原版配方一样被扫描捕获。数据包配方应会自动处理。
- 模组战利品、怪物装备、村民职业: 均命中与原版相同的钩子。无需白名单。
- JEI: 已集成。替换食材会在每个槽位中循环切换有效的 TC 工具。配方转移功能支持原版 3x3 工作台、玩家物品栏网格、TC 工作站在内以及用户可扩展配置中声明的任何容器。
- 注意:其他合成界面可能需要特殊处理,我尚未专门考虑这些情况!如果有任何问题,请告诉我。
配置
将 jar 文件放入你的 mods 文件夹并加载世界即可。
默认设置已经相当合理,但如果你想进行调整,首次启动后会在 config/ 下出现四个文件:
| 文件 | 格式 | 控制内容 |
|---|---|---|
tinkersdevotion-common.toml |
TOML | 主要开关。独立禁用原版合成移除、怪物、战利品或村民替换。调整部件匹配阈值、战利品方差、修饰符专业化权重。 |
tinkersdevotion/tool_exclusions.json |
JSON | 按槽位或操作对特定 TC 工具进行黑名单处理。防止匕首在配方中替代阔剑,防止粘液套装作为护甲战利品滚动等。默认已预填充。 |
tinkersdevotion/modifier_skip_list.json |
JSON | 不应出现在随机附魔池中的 TC 修饰符 ID。默认已预填充。 |
tinkersdevotion/item_aliases.json |
JSON | 将模组物品视为原版物品(参见特性 #5)。 |
命令
/tinkersdevotion generate重新运行配方扫描并重写生成的数据包。在安装或移除模组后很有用。需要 OP 等级 2。/tinkersdevotion generate reset将两个 JSON 配置文件重置为默认值并重新生成。TOML 配置文件不受影响。
配方数据包在世界首次加载时自动生成,因此仅在你更改模组列表时才需要使用此命令。
问题与反馈
留下评论或加入 Discord 聊天或提问。如果你发现了错误或有特殊需求,请在 GitHub Issue 追踪器 上标记它。
- 我只是一个人,但我正在全力以赴!!
- FAQ 即将推出。
依赖与兼容性
- Minecraft 1.20.1,Forge 47.4+
- Tinkers' Construct 3.11+
- Mantle 1.11+ (Tinkers' 的依赖项,你肯定会有)
- JEI 15.20+ (可选,用于配方显示和 Shift+点击转移)
发布时已与几乎所有 Tinkers 的扩展测试兼容!任何使用标准标签并通过 TC 配方系统注册其修饰符的其他 TC 扩展都友好兼容。
模组物品(如果你对替换来自其他模组的工具感兴趣,例如 epic-fight、simply-swords 等):默认情况下不会替换任何模组物品,但你可以添加一个简单的 mod:mytool, minecraft:vanillaItem 来替换它们(参见特性 #5)!旨在对所有人超级友好 :) 如果在这方面有任何问题,请告诉我!
致谢与许可
Tinkers' Construct 和 Mantle 由 SlimeKnights 制作。没有他们,这个模组将无法整合。
许可:保留所有权利。 简要说明:
- 可免费包含在任何公开或私有的整合包中。署名会很棒但不是必需的。
- 可免费用于个人用途。
- 未经书面许可,禁止修改、分支、重新上传或移植。
完整条款见 LICENSE.md。如需申请许可,请提交一个 GitHub Issue。
Tinkers' Devotion
Tinkers' Devotion: true tinkers integration and immersion! Vanilla tools, weapons and armor all replaced by their TC counterparts in recipes, loot, mob equipment, and villager trades. There are no bounds to your tinkering, and the world should reflect that!
This mod is designed to be extensible, so the replacements system should work automatically with most mods! Most replacement systems can be toggled, scoped per item type, or blacklisted per mod. See Configuration further down.
Features
1. Mob Equipment
Mobs spawning with vanilla tools / armor spawn with the TC equivalent instead, rolled fresh per mob with materials biased toward the same tier. This affects armour, melee & ranged weapons. Some mods equip their mobs just AFTER spawn (e.g. Guard Villagers); use replaceDeferredSpawnEquipment to catch those too (default off).
2. Loot Tables
Vanilla tools, weapons, and armor in chest loot, fishing pools, and mob drops get replaced with TC same-tier equivalents at the same tier. Pre-enchanted items have their enchantments converted to weighted-random TC modifiers as part of the swap.
3. Crafting Recipes
Crafting vanilla tools, armor, and ranged weapons as outputs is disabled (via Mantle). Recipes that take vanilla tools as inputs (e.g: a dispenser requiring a bow) are rewritten to accept a TC equivalent at the same tier. This is designed to work for ALL modded recipes which require vanilla items as recipe inputs.
I highly suggest you use JEI, as it shows candidate TC tools per slot with tier hints in the tooltip.
4. Villager Trades
All villager trades involving such items (e.g: armorer, toolsmith, fisherman) have these trades replaced with a deterministic trade on spawn (e.g: iron-sword from a toolsmith will be replaced with a tier-2 TC sword equivalent). Wandering traders are also handled in the same way.
5. Custom Modded Item Support
The 4 systems above trigger on vanilla items & DON'T TOUCH MODDED ITEMS BY DEFAULT since mods build their tools differently. I support including ANY modded item, just add to config/tinkersdevotion/item_aliases.json with a vanilla counterpart, e.g: "twilightforest:steeleaf_pickaxe": "minecraft:iron_pickaxe". Now steeleaf pickaxes are replaced by TC iron-pickaxe equivalents, and will be replaced in loot, mobs, trade and recipes! Their own recipe gets disabled too, same as vanilla's. Only Tinkers items can't be aliased.
Nerdy Stuff
Skip to the Configuration section below if you just want to play.
Spoiler
The general flow
The core of the mod is a shared tryReplace() function: vanilla item in, TC equivalent out (matched category, weighted materials, enchantments converted to modifiers). Everything else is just hooks that pass items into it.
Four entry points feed tryReplace():
- First world load: scan all loaded recipes, write a generated datapack with TC-aware replacements, auto-reload.
- Mob spawn: an
EntityJoinLevelEventhandler swaps any vanilla item in the mob's slots. - Loot generation: a Forge Global Loot Modifier runs the same swap on result lists.
- Villager trade roll: trade listings are wrapped at registration time, so trade results pass through the same swap.
Because every hook converges on the same tryReplace(), a mob's diamond axe and a chest's diamond axe roll the same way.
Picking materials: the 80 / 10 / 10 split (configurable)
We pick a TC tool matching the vanilla item's category (sword / pickaxe type, etc.), then rolls materials per part using a weighted split:
- 80% canonical: the hand-picked TC material for that tier, chosen so the result feels natural.
- 10% same-tier random: variety within the tier.
- 10% any-tier random: cross-tier variance, capped at a configurable max tier (default diamond) so you don't get random hepatizon zombies in early game.
The full canonical mappings:
| Vanilla tier | Tool canonical | Armor canonical |
|---|---|---|
| wooden | tconstruct:wood |
- |
| stone | tconstruct:rock |
- |
| leather | - | tconstruct:copper |
| copper | tconstruct:copper |
tconstruct:copper |
| iron / chainmail | tconstruct:iron |
tconstruct:iron |
| golden | tconstruct:rose_gold |
tconstruct:gold |
| diamond | tconstruct:cobalt |
tconstruct:cobalt |
| netherite | tconstruct:hepatizon |
tconstruct:hepatizon |
Copper has no TC tool-tier of its own, so it keeps tconstruct:copper as canonical, and is matched as iron (i.e copper-replacements will have ~80% copper show up, while the rest is iron-tier).
Enchantments -> TC modifiers
Pre-enchanted vanilla items get their enchantments converted to TC modifiers.
- Budget: sum vanilla enchantment levels, take
ceil(sqrt(totalLevels x 4)), cap at 7. Sharpness V Unbreaking III Mending I gets a budget of about 6. - Modifier pool: built from your installed TC recipes, so addon modifiers are auto-included. Modifiers with unmet prerequisites are filtered.
- Specialty weighting: specialist modifiers (apply specifically to one "type" of tool, e.g: sharp) are ~8x more likely than universals. Tunable.
- Spending the budget: at each step, either level up an existing modifier (default 65% chance) or pick a new one. Bonus-slot modifiers added if budget overflows.
A skip list in the config keeps unwanted modifiers out (defaults include netherite, creative_slot, draconic, etc.).
Compatibility & extensibility
- TC addons: picked up automatically via standard tags and Forge tool actions. Tested with Tinkers' Things, TCIntegrations, Tinkers Levelling Addon, and Tinkers' Thinking.
- Addon materials: read live from
MaterialRegistry. New material drops in, it's eligible. Custom-tier materials work for armor and ranged; tools need a vanilla-tier mapping. - Modded recipes: caught by the same scan as vanilla. Datapack recipes should be automatically handled.
- Modded loot, mob equipment, villager professions: all hit the same hooks as vanilla. No allowlist.
- JEI: integrated. Replacement ingredient cycles through valid TC tools per slot. Recipe transfer works on the vanilla 3x3, player inventory grid, TC crafting station, and any container declared in the user-extensible config.
- NOTE: Other crafting interfaces may need special handling which I haven't specifically accounted for! Please let me know if there are any issues.
Configuration
Drop the jar in your mods folder and load a world.
The defaults are quite sensible but if you want to tune, four files appear under config/ after first launch:
| File | Format | What it controls |
|---|---|---|
tinkersdevotion-common.toml |
TOML | Main toggles. Independently disable vanilla-crafting removal, mob, loot, or villager replacement. Tune the parts-match threshold, loot variance, modifier specialization weight. |
tinkersdevotion/tool_exclusions.json |
JSON | Blacklist specific TC tools per slot or action. Stops dagger from substituting for cleaver in recipes, stops slimesuit from rolling as armor loot, etc. Defaults pre-populated. |
tinkersdevotion/modifier_skip_list.json |
JSON | TC modifier IDs that should never appear in the random enchantment pool. Defaults pre-populated. |
tinkersdevotion/item_aliases.json |
JSON | Treat a modded item as a vanilla one (Refer to Feature #5). |
Commands
/tinkersdevotion generatere-runs the recipe scan and rewrites the generated datapack. Useful after installing or removing mods. OP level 2./tinkersdevotion generate resetresets the two JSON config files to defaults and regenerates. The TOML config is untouched.
The recipe datapack auto-generates on first world load, so the command is only needed if you change your mod list.
Issues & Feedback
Leave a comment or hop in the Discord to chat or ask a question. If you've found a bug or have a specific request, flag it on the GitHub issue tracker.
- I am just one guy but im doing my best !!
- FAQ COMING SOON.
Requirements & Compatibility
- Minecraft 1.20.1, Forge 47.4+
- Tinkers' Construct 3.11+
- Mantle 1.11+ (Tinkers' dependency, you'll have it)
- JEI 15.20+ (optional, used for recipe display and shift-click transfer)
Tested with almost all tinker's addons (at time of release here)! Friendly to any other TC addon that uses standard tags and registers its modifiers via TC's recipe system.
Modded items (if you are interested in replacing tools from other mods like epic-fight, simply-swords etc): No modded items are replaced by default, but you can add a simple mod:mytool, minecraft:vanillaItem to replace them (see Feature #5)! Built to be super friendly to everyone :) Please lmk if any issues with this!
Credits & License
Tinkers' Construct and Mantle by SlimeKnights. Without them this mod would have nothing to integrate.
License: All Rights Reserved. Short version:
- Free to include in any public or private modpack. Credit would be nice but not required.
- Free for personal use.
- Not allowed: modification, forks, re-uploads, or porting without written permission.
Full terms in LICENSE.md. For permission requests, open a GitHub issue.
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
下载 Tinkers' Devotion
BUGFIX: 修复了守卫村民的盔甲替换遗漏问题(他们使用自己的物品处理器)。这也应该适用于其他拥有自己物品处理器的模组。
新增 replaceDeferredSpawnEquipment(默认关闭,需开启 replaceMobEquipment):替换原版模组在生物生成后的一刻才给予其装备的行为,例如守卫村民的守卫。
此外修复了部分非敌对远程生物仅持有 Tinkers' Construct 十字弩而不发射的问题。
还修复了:带有子文件夹 ID 的替换配方(例如 Cataclysm 锻造台)现在能正常保存,而非被跳过。
BUGFIX:新增 exclusiveRecipeReplacement 选项(默认开启):使用原版工具输入的模组配方现在仅接受其对应的 TC 等价配方(之前会同时保留原始配方)→ 现在已移除原始配方。需要搭配 disableVanillaCrafting 使用
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧