Simple AutoTool Mod
一款适用于 Minecraft 1.21.4 的 Fabric 客户端模组,在挖掘方块时会自动切换到背包中最佳的工具。
功能特性
- 自动切换工具:检测你锁定的方块,并从快捷栏中自动选择最有效的工具
- 智能识别:识别不同类型的方块并匹配相应的工具:
- 镐用于石头、矿石和其他坚硬方块
- 斧用于木材和木质材料
- 铲子用于泥土、沙子、砾石等类似方块
- 锄用于耕地和植物类方块
- 手动覆盖:按住 Shift(潜行)可禁用自动切换,保持手动控制
- 开关功能:按下
R(可配置)启用或禁用模组,并显示屏幕反馈
- 仅客户端:在任何服务器上均可运行,无需服务端安装
- 仅限快捷栏:仅在快捷栏(0-8 号槽位)之间切换工具
安装
下载与安装:
- 从发布页面下载最新版本
- 将
.jar 文件放入你的 mods 文件夹
- 使用 Fabric 配置文件启动 Minecraft
使用方法
- 安装模组并启动 Minecraft
- 加入任意世界(单人或多人)
- 注视你想要挖掘的方块
- 模组将自动切换到你快捷栏中的最佳工具
- 按住 Shift 可暂时禁用自动切换
- 按 G 以开启/关闭模组(聊天栏会显示状态确认信息)
配置
- 切换按键:默认切换模组的按键为
G。你可以在 Minecraft 的“控制”设置下的 “AutoTool” 类别中更改此按键。
工作原理
- 方块检测:模组持续监控你所注视的方块
- 工具分析:检查快捷栏中的所有物品,并计算其对目标方块的挖掘效率
- 智能切换:切换到具有最高挖掘速度倍率的工具
- 尊重玩家意图:当你潜行时不会进行切换,以便进行手动控制
兼容性
- Minecraft 版本:1.21.4
- 加载器:Fabric
- 侧别:仅客户端
- 服务器兼容性:适用于任何服务器(Vanilla、Fabric、Paper 等)
- 其他模组:应与大多数其他模组兼容
技术细节
- 语言:Java 21
- 框架:Fabric API
- 架构:基于事件驱动,包含客户端刻事件
- 性能:轻量级,对性能影响极小
故障排除
模组未生效?
- 确保已安装 Fabric Loader 和 Fabric API
- 检查是否使用的是 Minecraft 1.21.4
- 验证模组是否已启用(按 G 切换)
工具未切换?
- 确保你没有在潜行(按住 Shift)
- 确保正确的工具位于快捷栏(0-8 号槽位)
- 检查你是否正直接注视着某个方块
性能问题?
- 该模组设计为轻量级,但如果遇到问题,请尝试暂时将其关闭
许可证
本项目采用 MIT 许可证授权。
注意:此模组仅适用于客户端,无需在服务端安装。它通过根据你锁定的方块自动切换选定的快捷栏槽位来工作。
Simple AutoTool Mod
A client-side Minecraft Fabric mod for version 1.21.4 that automatically switches to the best tool in your inventory when mining blocks.
Features
- Automatic Tool Switching: Detects the block you're targeting and automatically selects the most effective tool from your hotbar
- Smart Detection: Recognizes different block types and matches them with appropriate tools:
- Pickaxe for stone, ores, and other hard blocks
- Axe for wood and wooden materials
- Shovel for dirt, sand, gravel, and similar blocks
- Hoe for farmland and plant-based blocks
- Manual Override: Hold Shift (sneak) to disable auto-switching and maintain manual control
- Toggle Functionality: Press
R (configurable) to enable/disable the mod with on-screen feedback
- Client-Side Only: Works on any server without requiring server-side installation
- Hotbar Only: Only switches between tools in your hotbar (slots 0-8)
Installation
Download and Install:
- Download the latest release from the releases page
- Place the
.jar file in your mods folder
- Launch Minecraft with the Fabric profile
Usage
- Install the mod and launch Minecraft
- Join any world (singleplayer or multiplayer)
- Look at a block you want to mine
- The mod will automatically switch to the best tool in your hotbar
- Hold Shift to temporarily disable auto-switching
- Press G to toggle the mod on/off (you'll see a chat message confirming the status)
Configuration
- Toggle Key: The default key to toggle the mod is
G. You can change this in Minecraft's Controls settings under the "AutoTool" category.
How It Works
- Block Detection: The mod continuously monitors what block you're looking at
- Tool Analysis: It checks all items in your hotbar and calculates their mining efficiency for the target block
- Smart Switching: It switches to the tool with the highest mining speed multiplier
- Respect Player Intent: It won't switch when you're sneaking, allowing for manual control
Compatibility
- Minecraft Version: 1.21.4
- Mod Loader: Fabric
- Side: Client-side only
- Server Compatibility: Works on any server (Vanilla, Fabric, Paper, etc.)
- Other Mods: Should be compatible with most other mods
Technical Details
- Language: Java 21
- Framework: Fabric API
- Architecture: Event-driven with client tick events
- Performance: Lightweight with minimal performance impact
Troubleshooting
Mod not working?
- Ensure you have Fabric Loader and Fabric API installed
- Check that you're using Minecraft 1.21.4
- Verify the mod is enabled (press G to toggle)
Tools not switching?
- Make sure you're not sneaking (holding Shift)
- Ensure the correct tool is in your hotbar (slots 0-8)
- Check that you're looking directly at a block
Performance issues?
- The mod is designed to be lightweight, but if you experience issues, try toggling it off temporarily
License
This project is licensed under the MIT License.
Note: This mod is client-side only and does not require installation on servers. It works by automatically switching your selected hotbar slot based on the block you're targeting.
评论 0
登录后参与评分
还没有评论,来抢沙发吧