自动攻击 | 自动种植模组
主要用途
一款轻量级、基于事件驱动的自动化工具,专为早期至中期的技术型农场设计——例如经验农场、半自动猪灵交易装置、怪物研磨机和树木农场。支持自动攻击、自动种植、骨粉加速以及智能音频控制。
完全兼容 Minecraft 1.21.1 至 1.21.11,采用重构后的代码库以提升稳定性和可维护性。
关键按键(默认绑定)
- F7:即时切换 主音量静音/取消静音 —— 你的全局音频开关。
- F8:切换 自动攻击 开启/关闭。
- F9:切换 自动种植 开启/关闭。
- F10:打开 游戏内配置 GUI,实时自定义所有模组设置。
只需瞄准有效目标并按下对应按键——模组会自动处理其余部分,无需模拟鼠标输入或劫持光标。
兼容目标
- 自动攻击 适用于盔甲架和敌对生物。中立生物和被动生物可通过设置启用。
- 自动种植 支持所有主世界和下界的植物及树苗。若要实现全自动操作,请将植物/树苗放在主手,骨粉放在副手——模组将自动种植并施加肥料。
智能音频管理
该模组具备智能 自动静音系统,拥有三个优先级层级:
- 手动(最高优先级):按 F7 随时强制静音或恢复主音量。
- 联动(中等优先级):当自动攻击或自动种植激活时自动静音(可配置)。
- 焦点基于(最低优先级):当 Minecraft 窗口失去焦点或被最小化时静音,并在你返回时恢复音量。
已知问题:如果在静音状态下通过启动器强制关闭游戏(例如 MultiMC、Prism 或官方启动器中的“关闭游戏”按钮),重新启动 Minecraft 后音频可能会卡在零音量。
原因:模组将原始音量存储在内存中,并依赖 Minecraft 的关机事件来恢复它。当游戏进程被外部终止(而非通过游戏内退出)时,此事件永远不会触发,因此音量无法恢复。此外,模组的运行时数据会丢失,导致下次启动时音量为 0。
解决方法:在重新进入游戏后,手动在 Minecraft 的声音设置中调整主音量。
效率与自定义
- 自动攻击:默认间隔 = 20 刻(1 秒)。
- 自动种植:默认间隔 = 5 刻(0.25 秒)。
这两个间隔均可通过 F10 配置菜单 完全调整,在该菜单中你还可以:
- 启用 随机延迟 或 跳过周期 以降低可预测性,
- 切换对中立/被动生物的支持,
- 控制自动功能是否触发联动静音,
- 以及更多选项——所有操作均无需重启游戏。
核心优势
- ✅ 基于事件驱动的逻辑:使用 Minecraft 原生交互系统——无虚假点击,无光标干扰。即使打开 GUI 也能正常工作。
- ✅ 真正的后台运行:在最小化或未聚焦状态下可靠运行——非常适合多任务处理。
- ✅ 非侵入式且安全:内置过滤器防止意外操作,且绝不会覆盖手动输入。
- ✅ 高兼容性:无需修改核心文件。理论上兼容所有其他模组。
⚠️ 发现问题?加入我们的 QQ 群:172442817。
重要提示
虽然此模组包含防检测功能(例如随机时间间隔),但它仍属于自动化工具,可能仍会被某些服务器的反作弊系统标记。使用前请务必咨询服务器管理员,以避免潜在的封禁风险。
许可证
本项目根据 GNU 通用公共许可证 v3.0 授权 - 详见 LICENSE 文件。
Auto Attack | Auto Plant Mod
Primary Purpose
A lightweight, event-driven automation tool designed for early- to mid-game technical farms—such as experience farms, semi-automatic Piglin bartering setups, mob grinders, and tree farms. Supports automatic attacking, planting, bone meal acceleration, and intelligent audio control.
Fully compatible with Minecraft 1.21.1 through 1.21.11, featuring a refactored codebase for improved stability and maintainability.
Key Controls (Default Keybinds)
- F7: Toggle master volume mute/unmute instantly — your global audio switch.
- F8: Toggle Auto Attack on/off.
- F9: Toggle Auto Planting on/off.
- F10: Open the in-game configuration GUI to customize all mod settings in real time.
Simply aim at a valid target and press the corresponding key—the mod handles the rest automatically, without simulating mouse input or hijacking your cursor.
Compatible Targets
- Auto Attack works on armor stands and hostile mobs. Neutral and passive mobs can be enabled via settings.
- Auto Planting supports all Overworld and Nether plants and saplings. For full automation, hold the plant/sapling in your main hand and bone meal in your off-hand—the mod will plant and fertilize automatically.
Smart Audio Management
The mod features an intelligent auto-mute system with three priority levels:
- Manual (Highest Priority): Press F7 to force mute or restore master volume at any time.
- Linked (Medium Priority): Automatically mutes when Auto Attack or Auto Planting is active (configurable).
- Focus-Based (Lowest Priority): Mutes when the Minecraft window loses focus or is minimized, and restores volume when you return.
Known Issue: If the game is forcefully closed via the launcher (e.g., "Close Game" button in MultiMC, Prism, or the official launcher) while muted, the audio may remain stuck at zero after restarting Minecraft.
Cause: The mod stores the original volume in memory and relies on Minecraft’s shutdown event to restore it. When the game process is terminated externally (not via in-game exit), this event is never fired, so the volume isn’t restored. Additionally, the mod’s runtime data is lost, so the next launch starts with volume = 0.
Workaround: Manually adjust the master volume in Minecraft’s sound settings once after relaunching.
Efficiency & Customization
- Auto Attack: Default interval = 20 ticks (1 second).
- Auto Planting: Default interval = 5 ticks (0.25 seconds).
Both intervals are fully adjustable via the F10 configuration menu, where you can also:
- Enable randomized delays or skip cycles to reduce predictability,
- Toggle support for neutral/passive mobs,
- Control whether auto-functions trigger linked muting,
- And more—all without restarting the game.
Key Advantages
- ✅ Event-Driven Logic: Uses Minecraft’s native interaction system—no fake clicks, no cursor interference. Works even with GUIs open.
- ✅ True Background Operation: Runs reliably when minimized or unfocused—ideal for multitasking.
- ✅ Non-Intrusive & Safe: Built-in filters prevent unintended actions and never override manual input.
- ✅ High Compatibility: No core file modifications. Theoretically compatible with all other mods.
⚠️ Found an issue? Join our QQ Group: 172442817.
Important Note
While this mod includes anti-detection features (e.g., randomized timing), it remains an automation aid and may still be flagged by certain server anti-cheat systems. Always check with your server administrator before use to avoid potential bans.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
下载 Autoclicker
1. 重构了项目框架,现支持从 1.20 到 1.26.1.2 的所有 MC 版本。
2. 自动补充新增功能:以快捷栏为源,将其补充至主手和副手。
3. 修复了自动化功能中的计时器错误,使其能在无操作时正确处理自动关闭。
4. 修复了在 1-tick 自动化下自动补充功能无法正常工作的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧