工具切换器
Tool Switcher 是一款简单的实用模组,可根据你试图破坏的方块自动切换工具。
功能
- 自动选择挖掘时的最佳工具,并考虑效率等因素。
- 通过暂时将工具交换到当前槽位,切换到快捷栏之外的工具。
- 如果已启用,在潜行时会自动禁用自身。
- 可选地防止在当前工具附魔了精准采集或时运时进行切换。
- 完全可自定义禁用的方块和工具列表。
- 服务端禁用:只需将模组安装到服务器上,即可阻止客户端在你的服务器上使用此功能。
配置
所有配置选项均可在 config/tool-switcher.toml 配置文件中进行编辑,或通过 Mod Menu & McQoy(推荐)进行修改。
常规设置
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
enabled |
true/false | true |
启用/禁用模组。可通过按键绑定切换(默认:句号键)。 |
showMessage |
true/false | true |
按下按键绑定时是否在屏幕上显示消息。 |
行为设置
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
sneaking |
true/false | true |
Tool Switcher 是否在潜行时关闭。 |
goBack |
true/false | true |
松开攻击键后是否恢复之前的工具/槽位。 |
respectSilkFortune |
true/false | true |
当手持精准采集或时运工具时,是否不切换工具。 |
ignoreInventory |
true/false | false |
是否忽略背包中的工具,仅与快捷栏中的工具进行交换。 |
delay |
Integer | 0 |
方块破坏完成后,换回或再次切换前的延迟时间。 |
过滤设置
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
disabledToolsMode |
String | "BLACKLIST" |
disabledTools 的应用方式:BLACKLIST(黑名单)、WHITELIST(白名单)或 DISABLED(禁用)。 |
disabledTools |
String Array | [] |
不会切换到的工具。支持以 # 开头的标签。 |
disabledBlocksMode |
String | "BLACKLIST" |
disabledBlocks 的应用方式:BLACKLIST(黑名单)、WHITELIST(白名单)或 DISABLED(禁用)。 |
disabledBlocks |
String Array | [] |
不会触发切换的方块。支持以 # 开头的标签。 |
customBindings |
Table | {} |
将方块 ID 或标签映射到物品 ID 或标签,以便为特定方块选择特定工具。 |
如何配置过滤器
工具和方块必须使用 Minecraft 的标识符格式,并以 TOML 数组语法指定。
示例配置文件 (config/tool-switcher.toml):
# 启用或禁用模组。可通过按键绑定切换。
enabled = true
# Tool Switcher 是否在潜行时关闭
sneaking = true
# 按下按键绑定时是否在屏幕上显示消息
showMessage = true
# 是否在挖掘前恢复到之前的槽位
goBack = true
# 当手持精准采集或时运工具时,是否不切换工具
respectSilkFortune = true
# 是否忽略背包中的工具,仅与快捷栏中的工具进行交换。
ignoreInventory = false
# 方块破坏完成后,换回/再次切换前的延迟时间(单位为刻(秒*20))
delay = 0
# disabledTools 字段的功能模式:BLACKLIST, WHITELIST 或 DISABLED
disabledToolsMode = "BLACKLIST"
# 不会切换到的工具
disabledTools = ["minecraft:diamond_pickaxe"]
# disabledBlocks 字段的功能模式:BLACKLIST, WHITELIST 或 DISABLED
disabledBlocksMode = "BLACKLIST"
# 不会触发切换的方块
disabledBlocks = ["minecraft:dirt"]
# 可选的自定义方块-工具映射;支持 ID 和标签
[customBindings]
"#minecraft:planks" = "minecraft:diamond_hoe"
格式说明:
- 每个条目必须用引号括起来
- 条目之间用逗号分隔
- 使用 Minecraft 的标识符格式:
"namespace:id" - 适用于模组物品:
"create:wrench","botania:mana_tablet" - 适用于标签:
"#minecraft:shovels"
常用工具 ID:
minecraft:wooden_pickaxe,minecraft:stone_pickaxe,minecraft:iron_pickaxeminecraft:wooden_shovel,minecraft:stone_shovel,minecraft:iron_shovelminecraft:wooden_axe,minecraft:stone_axe,minecraft:iron_axeminecraft:golden_pickaxe,minecraft:golden_shovel,minecraft:golden_axe
常用方块 ID:
minecraft:diamond_ore,minecraft:deepslate_diamond_oreminecraft:ancient_debris,minecraft:gilded_blackstoneminecraft:spawner,minecraft:end_portal_frame
工作原理
快捷栏工具: 如果最佳工具在快捷栏中,Tool Switcher 会选择该槽位。
背包工具: 如果最佳工具不在快捷栏中,Tool Switcher 会将其临时交换到当前槽位。当你松开攻击键(或完成挖掘)时,它会自动换回原位(如果启用了 goBack)。
Tool Switcher
Tool Switcher is a simple utility mod that enables you to automatically switch tools depending on what block you are trying to break.
Features
- Automatically selects the optimal tool for mining, taking into account factors such as efficiency.
- Switches to tools outside the hotbar by temporarily swapping them into your current slot.
- Disables itself while you are sneaking, if enabled.
- Optionally prevents switching if the current tool has Silk Touch or Fortune.
- Fully customisable list of disabled blocks and tools.
- Server-side disabling, just install the mod onto the server to stop clients from using it on your server.
Config
All configuration options can be edited in the config file at config/tool-switcher.toml or through Mod Menu & McQoy (recommended).
General Settings
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
true/false | true |
Enable/disable the mod. Can be toggled with a keybind (default: Period). |
showMessage |
true/false | true |
Whether to show a message on the screen when keybind is pressed. |
Behaviour Settings
| Option | Type | Default | Description |
|---|---|---|---|
sneaking |
true/false | true |
Whether Tool Switcher turns off while sneaking. |
goBack |
true/false | true |
Whether to restore the previous tool/slot after releasing the attack key. |
respectSilkFortune |
true/false | true |
Whether to not switch tools if you are holding a silk touch/fortune tool. |
ignoreInventory |
true/false | false |
Whether to ignore tools in the inventory and only swap with hotbar ones. |
delay |
Integer | 0 |
Delay before swapping back or again after the block is finished breaking. |
Filter Settings
| Option | Type | Default | Description |
|---|---|---|---|
disabledToolsMode |
String | "BLACKLIST" |
How disabledTools is applied: BLACKLIST, WHITELIST, or DISABLED. |
disabledTools |
String Array | [] |
Tools that don't get switched to. Supports tags prefixed with #. |
disabledBlocksMode |
String | "BLACKLIST" |
How disabledBlocks is applied: BLACKLIST, WHITELIST, or DISABLED. |
disabledBlocks |
String Array | [] |
Blocks that don't trigger a switch. Supports tags prefixed with #. |
customBindings |
Table | {} |
Maps block IDs or tags to item IDs or tags to select a specific tool for a specific block. |
How to Configure Filters
Tools and blocks must be specified using Minecraft's identifier format in the TOML array syntax.
Example config file (config/tool-switcher.toml):
# Enable or disable the mod. Can be toggled with a keybind.
enabled = true
# Whether Tool Switcher turns off while sneaking
sneaking = true
# Whether to show a message on the screen when keybind is pressed
showMessage = true
# Whether to switch back to the slot you were on before mining
goBack = true
# Whether to not switch tools if you are holding a Silk Touch or Fortune Tool
respectSilkFortune = true
# Whether to ignore tools in the inventory and only swap with hotbar ones.
ignoreInventory = false
# Delay before swapping back/again after block break finished (in ticks (seconds*20))
delay = 0
# How the disabledTools field should function: BLACKLIST, WHITELIST, or DISABLED
disabledToolsMode = "BLACKLIST"
# Tools that don't get switched to
disabledTools = ["minecraft:diamond_pickaxe"]
# How the disabledBlocks field should function: BLACKLIST, WHITELIST, or DISABLED
disabledBlocksMode = "BLACKLIST"
# Blocks that don't trigger a switch
disabledBlocks = ["minecraft:dirt"]
# Optional custom block-to-tool mappings; IDs and tags are supported
[customBindings]
"#minecraft:planks" = "minecraft:diamond_hoe"
Format:
- Each entry must be in quotes
- Entries are separated by commas
- Use Minecraft's identifier format:
"namespace:id" - Works with modded items:
"create:wrench","botania:mana_tablet" - Works with tags:
"#minecraft:shovels"
Common Tool IDs:
minecraft:wooden_pickaxe,minecraft:stone_pickaxe,minecraft:iron_pickaxeminecraft:wooden_shovel,minecraft:stone_shovel,minecraft:iron_shovelminecraft:wooden_axe,minecraft:stone_axe,minecraft:iron_axeminecraft:golden_pickaxe,minecraft:golden_shovel,minecraft:golden_axe
Common Block IDs:
minecraft:diamond_ore,minecraft:deepslate_diamond_oreminecraft:ancient_debris,minecraft:gilded_blackstoneminecraft:spawner,minecraft:end_portal_frame
How It Works
Hotbar Tools: If the best tool is in your hotbar, Tool Switcher selects that slot.
Inventory Tools: If the best tool is outside your hotbar, Tool Switcher temporarily swaps it into your current slot. When you release the attack key (or finish mining), it swaps back automatically (if goBack is enabled).
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
下载 Tool Switcher
3.2.6
- 修复了模组在其他玩家挖掘方块时触发的错误。
3.2.5
- 修复了其他玩家挖掘方块时模组被触发的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧