ToolSwapper
在开始挖掘方块时自动切换到合适的工具,在攻击生物时自动切换到合适的武器。无需任何设置。
工具选择机制
许多自动换装模组使用硬编码的列表(例如石头对应镐子,泥土对应铲子等)。每次 Mojang 添加新方块时都需要更新该列表,且完全无法识别模组方块。
ToolSwapper 不使用此类列表。当你开始破坏一个方块时,它会检查你背包中哪个工具能最快破坏它,以及哪个工具是获取掉落物所必需的,然后自动使用该工具。因此,它适用于原版方块、模组方块以及数据包添加的任何内容,无需特定支持。
一些示例:
| 工具 |
适用对象 |
| 镐 |
石头、矿石、深板岩、黑曜石、金属方块、铁轨、混凝土、陶土 |
| 铲 |
泥土、沙子、砾石、黏土、雪、灵魂沙、泥巴 |
| 斧 |
原木、木板、箱子、 barrels(桶)、南瓜、竹块、蜂巢 |
| 锄 |
干草捆、海绵、下界疣块、苔藓、声核 |
| 剪刀 |
树叶、羊毛、蜘蛛网、藤蔓、发光地衣 |
| 剑 |
蜘蛛网、竹子 |
如果切换没有意义,则不会进行切换:例如方块徒手即可瞬间破坏、无法被破坏,或者你手中已经持有最佳工具时。
详细说明
- 精准采集(Silk Touch)用于玻璃、冰和刷怪笼等方块,而fortune(幸运)用于矿石和作物。如果你同时拥有这两个附魔,系统会选择最适合该方块的附魔。
- 挖掘速度实际上是经过计算的,包括效率(Efficiency)、急迫(Haste)、采矿疲劳(Mining Fatigue),以及在水下或空中挖掘时的惩罚。
- 如果你的某个工具可以瞬间挖掘该方块,则会优先使用它。
- 即将损坏的工具会被忽略,因此不会让你的下界合金镐磨损到只剩最后5点耐久度。
战斗
武器根据物品自身的攻击伤害和攻击速度进行排序,因此模组武器也能正常工作。击退、节肢杀手和穿刺效果会针对使用原版实体标签的 mobs 进行检查,这意味着更改这些标签的数据包也会被正确识别。
你可以优先选择爆发伤害或每秒伤害(DPS),跳过击退类武器(对生物农场有用),在对抗持盾生物时偏好使用斧头,或者为特定生物设置覆盖规则。
配置
大多数人无需修改此配置。如果你希望调整,这里有大量选项可供设置,并且你可以在游戏中通过 /toolswap set <路径> <值> 命令直接更改任何配置项,而无需重启游戏。
控制
| 按键 |
操作 |
V |
切换启用/禁用状态 |
| (未绑定) |
循环切换配置、按住时暂停、强制切换、重新加载配置 |
当前状态会显示在一个小型 HUD 上。你可以通过 /toolswap global set display.hud false 隐藏它。
注意事项
- 仅客户端使用,因此服务器端无需安装任何内容。
- 请先查看服务器的规则。许多服务器不允许使用自动工具模组,而且从主物品栏(而非快捷栏)中取出工具会发送容器数据包,这可能会被某些反作弊系统标记。开启
safety.antiCheatSafeMode 可将其限制为仅在快捷栏切换。
- Mod Menu 是可选的,它仅添加一个配置按钮。
ToolSwapper
Automatically switches to the right tool when you start mining a block, and the right weapon when you attack a mob. No setup needed.
How it picks tools
A lot of auto-tool mods use a hardcoded list (stone means pickaxe, dirt means shovel, and so on). That list needs updating every time Mojang adds blocks, and it doesn't know about modded blocks at all.
ToolSwapper doesn't use a list. When you start breaking a block, it checks which tool in your inventory breaks it fastest and which one you actually need to get the drop, then uses that. So it works with vanilla blocks, modded blocks, and anything added by datapacks without needing specific support.
Some examples:
| Tool |
Used for |
| Pickaxe |
Stone, ores, deepslate, obsidian, metal blocks, rails, concrete, terracotta |
| Shovel |
Dirt, sand, gravel, clay, snow, soul sand, mud |
| Axe |
Logs, planks, chests, barrels, pumpkins, bamboo blocks, beehives |
| Hoe |
Hay bales, sponges, nether wart blocks, moss, sculk |
| Shears |
Leaves, wool, cobwebs, vines, glow lichen |
| Sword |
Cobwebs, bamboo |
It won't swap when there's no point: if the block breaks instantly by hand, can't be broken, or you're already holding the best option.
The details
- Silk Touch gets used for things like glass, ice and spawners, and Fortune for ores and crops. If you have both, it picks whichever suits the block.
- Break speed is actually calculated, including Efficiency, Haste, Mining Fatigue, and the penalties for mining underwater or while in the air.
- If one of your tools can mine the block instantly, that one gets picked.
- Tools that are about to break are left alone, so it won't wear your netherite pickaxe down to its last 5 durability.
Combat
Weapons are ranked by the attack damage and attack speed on the item itself, so modded weapons work fine. Smite, Bane of Arthropods and Impaling are checked against the mob using vanilla entity tags, which means datapacks that change those tags are respected.
You can prioritize burst damage or DPS, skip Knockback weapons (useful for mob farms), prefer axes against mobs with shields, or set overrides for specific mobs.
Config
Most people won't need to touch it. If you want to, there are plenty of options, and you can change any of them in-game with /toolswap set <path> <value> without restarting.
Controls
| Key |
Action |
V |
Toggle on/off |
| (unbound) |
Cycle profile, suspend while held, force swap, reload config |
There's a small HUD showing the current state. You can hide it with /toolswap global set display.hud false.
Notes
- Client-side only, so nothing needs to be installed on the server.
- Check the server's rules first. Plenty of servers don't allow auto-tool mods, and pulling tools from your main inventory (not just the hotbar) sends container packets that some anticheats flag. Turn on
safety.antiCheatSafeMode to limit it to hotbar switching.
- Mod Menu is optional and just adds a config button.
评论 0
登录后参与评分
还没有评论,来抢沙发吧