RecruitsAddon - 高级招募兵指令系统
一个为 Recruits 模组提供的全面增强插件,让你对招募兵单位拥有更高级的战术控制权。
? 概述
RecruitsAddon 通过以下方式彻底改变了你指挥招募兵的方式:
- 无限距离指令 - 在世界任意位置控制你的招募兵
- 基于编队的操作 - 针对特定招募兵编队进行精确战术打击
- 阵型系统 - 将招募兵组织成 LINE(线形)、SQUARE(方形)、CIRCLE(圆形)和 WEDGE(楔形)阵型
- 高级战斗 AI 与自动传送 - 协同团队反击、智能防御行为,以及为卡顿的招募兵提供自动传送功能
- 增强的 GUI 集成 - 无缝集成到现有的 Recruits 模组界面中
? 依赖项
- Minecraft: 1.20.1
- Minecraft Forge: 47.3.0+
- TalhaNation's Recruits Mod: 1.20.1 版本的最新版本
? 使用方法
基础指令
所有指令均可在无限距离下生效——无需靠近你的招募兵!
行军指令
/recruits march <x> <y> <z> [group <groupId>] [formation <type>]
- 基础用法:
/recruits march 100 64 -200 - 命令所有招募兵前往指定坐标
- 指定编队:
/recruits march 0 64 0 group 1 - 仅命令第 1 组
- 指定阵型:
/recruits march 50 70 -100 formation LINE - 以线形阵型前进
- 高级用法:
/recruits march -50 80 150 group 2 formation SQUARE - 第 2 组以方形阵型前进
突袭指令
/recruits raid <x> <y> <z> [group <groupId>] [formation <type>]
- 基础用法:
/recruits raid -100 65 300 - 派遣招募兵前往指定坐标进行突袭
- 指定编队:
/recruits raid 200 70 -50 group 3 - 派遣第 3 组进行突袭
- 指定阵型:
/recruits raid 0 64 -200 formation WEDGE - 以楔形阵型突袭
控制指令
/recruits cancel # 取消所有行动,招募兵返回你身边
/recruits stop # 让招募兵举起盾牌保持防御姿态
/recruits follow [player] [formation] # 跟随你或另一名玩家
/recruits attack <player> # 攻击特定玩家(最大范围 125 格)
阵型类型
- LINE - 单列阵型,非常适合狭窄通道
- SQUARE - 网格阵型,攻防平衡
- CIRCLE - 圆形阵型,非常适合区域防守
- WEDGE - V 字形阵型,非常适合突破进攻
坐标系统
绝对坐标:使用确切数字
/recruits march 100 64 -200
相对坐标:使用 ~ 表示相对于自身的位置
/recruits march ~ ~5 ~10 # 从你当前位置向上 5 格,向前 10 格
/recruits march ~-20 ~ ~ # 从你当前位置向左 20 格
?️ GUI 功能
增强版招募兵指令 GUI
通过现有的 Recruits 模组界面访问,找到新的“Group Commands”(编队指令)部分:
快捷操作按钮:
- March Here - 将当前活跃编队发送到准星指向的目标
- Raid Here - 将当前活跃编队发送到准星指向的目标进行突袭
- Cancel - 立即召回所有招募兵
- Stop - 让招募兵保持防御姿态
聊天栏预填按钮:
- March to... - 预填
/recruits march group X ~ ~ ~ 以便轻松编辑
- Raid at... - 预填
/recruits raid group X ~ ~ ~ 以便轻松编辑
注意:按钮会自动检测你活跃的招募兵编队并针对它们进行操作。
⚔️ 战斗功能
行军 vs 突袭 行为差异
行军模式(防御性):
- 招募兵以中立状态移动到目的地
- 若被攻击会进行自卫,但继续执行任务
- 移动过程中保持阵型
- 适合重新部署和防御性移动
突袭模式(进攻性):
- 两阶段行动:先行军 → 后突袭
- 招募兵先移动到目的地,然后变得具有攻击性
- 攻击目的地的敌对生物和玩家
- 尊重实体黑名单配置
编队反击系统
当行军编队中的任何一名招募兵受到攻击时:
- 整个编队立即锁定攻击者
- 全队集结以消除威胁
- 5 秒后,自动恢复原定行军路线
- 你会收到关于交火的通知
防御指令
Stop 指令:
- 招募兵举起盾牌进入守卫模式
- 仅在直接受到攻击时才进行反击
- 多种盾牌激活方式确保可靠性
- 非常适合坚守战略要地
Cancel 指令:
- 清除全面的 AI 状态
- 多种寻路方法确保招募兵返回
- 取消任何活跃的突袭任务
- 强大的错误处理机制防止失败
⚙️ 配置
配置文件:config/recruits-addon.toml(首次运行时自动生成)
实体黑名单
自定义招募兵在突袭期间应避免攻击的实体:
[blacklist.entities]
entityBlacklist = [
"minecraft:villager",
"minecraft:iron_golem",
"minecraft:cat",
"minecraft:wolf",
"minecraft:creeper"
]
? 高级使用示例
战术场景
基地防御设置:
/recruits march -100 64 -100 group 1 formation CIRCLE
/recruits march 100 64 100 group 2 formation SQUARE
/recruits stop
协同攻击:
/recruits march 0 64 -200 group 1 formation WEDGE
/recruits march 50 64 -200 group 2 formation LINE
/recruits raid 0 64 -150 group 1
/recruits raid 0 64 -150 group 2
护送任务:
/recruits follow @p formation CIRCLE
/recruits march ~ ~ ~20 formation LINE
编队管理
多编队操作:
# 将不同编队派往不同地点
/recruits march 100 64 0 group 1 formation LINE
/recruits march -100 64 0 group 2 formation SQUARE
/recruits raid 0 64 200 group 3 formation WEDGE
# 召回特定编队
/recruits cancel group 1
# 停止所有编队
/recruits stop
?️ 故障排除
常见问题
问:招募兵未响应指令
- 确保招募兵确实属于你
- 检查 GUI 中编队是否未被禁用
- 验证招募兵没有卡住或处于战斗中
Q:GUI 按钮无法使用
- 确保你有活跃的招募兵组
- 检查招募兵是否存活且未被禁用
- 如果按钮显示为灰色,请重启 GUI
Q:距离限制
- 此模组移除了所有距离限制
- 命令可以从世界中的任何位置执行
- 如果招募兵似乎无反应,他们可能位于未加载的区块中
Q:停止时招募兵不举盾
- 该模组尝试多种方法来激活盾牌
- 确保招募兵已装备盾牌
- 某些类型的招募兵可能不支持盾牌机制
调试信息
在 log4j2.xml 中启用调试日志记录:
<Logger level="debug" name="com.mchivellian.recruitsaddon"/>
? 致谢
- TalhaNation 提供了优秀的原版 Recruits 模组
- 社区提供的反馈和测试支持
享受以战术精准度指挥你的招募兵吧!⚔️
RecruitsAddon - Advanced Recruit Command System
A comprehensive addon for the Recruits mod that provides advanced tactical control over your recruit units.
? Overview
RecruitsAddon transforms the way you command your recruits by providing:
- Unlimited Range Commands - Control your recruits from anywhere in the world
- Group-Based Operations - Target specific recruit groups for tactical precision
- Formation System - Organize recruits in LINE, SQUARE, CIRCLE, and WEDGE formations
- Advanced Combat AI & Auto-Teleport - Coordinated group retaliation, smart defensive behavior, and auto-teleportation for lagging recruits
- Enhanced GUI Integration - Seamless integration with the existing Recruits mod interface
? Requirements
- Minecraft: 1.20.1
- Minecraft Forge: 47.3.0+
- TalhaNation's Recruits Mod: Latest version for 1.20.1
? How to Use
Basic Commands
All commands work at unlimited distance - no need to be near your recruits!
March Commands
/recruits march <x> <y> <z> [group <groupId>] [formation <type>]
- Basic:
/recruits march 100 64 -200 - March all recruits to coordinates
- Group:
/recruits march 0 64 0 group 1 - March only group 1
- Formation:
/recruits march 50 70 -100 formation LINE - March in line formation
- Advanced:
/recruits march -50 80 150 group 2 formation SQUARE - Group 2 in square formation
Raid Commands
/recruits raid <x> <y> <z> [group <groupId>] [formation <type>]
- Basic:
/recruits raid -100 65 300 - Send recruits to raid coordinates
- Group:
/recruits raid 200 70 -50 group 3 - Send group 3 to raid
- Formation:
/recruits raid 0 64 -200 formation WEDGE - Raid in wedge formation
Control Commands
/recruits cancel # Cancel all operations, recruits return to you
/recruits stop # Make recruits hold defensive positions with shields
/recruits follow [player] [formation] # Follow you or another player
/recruits attack <player> # Attack a specific player (max 125 blocks)
Formation Types
- LINE - Single line formation, perfect for narrow passages
- SQUARE - Grid formation, balanced defense and offense
- CIRCLE - Circular formation, excellent for area defense
- WEDGE - V-shaped formation, ideal for breakthrough attacks
Coordinate System
Absolute Coordinates: Use exact numbers
/recruits march 100 64 -200
Relative Coordinates: Use ~ for relative positioning
/recruits march ~ ~5 ~10 # 5 blocks up, 10 blocks forward from your position
/recruits march ~-20 ~ ~ # 20 blocks to the left of your position
?️ GUI Features
Enhanced Recruit Command GUI
Access through the existing Recruits mod interface to find new "Group Commands" section:
Quick Action Buttons:
- March Here - Send active groups to your crosshair target
- Raid Here - Send active groups to raid your crosshair target
- Cancel - Instantly recall all recruits to you
- Stop - Make recruits hold defensive positions
Chat Prefill Buttons:
- March to... - Prefills
/recruits march group X ~ ~ ~ for easy editing
- Raid at... - Prefills
/recruits raid group X ~ ~ ~ for easy editing
Note: Buttons automatically detect your active recruit groups and target them specifically.
⚔️ Combat Features
March vs Raid Behavior
March Mode (Defensive):
- Recruits move to destination in neutral state
- Will defend if attacked but continue mission
- Maintains formation during movement
- Suitable for repositioning and defensive movements
Raid Mode (Aggressive):
- Two-phase operation: March → Raid
- Recruits march to destination, then become aggressive
- Attacks hostile mobs and players at destination
- Respects entity blacklist configuration
Group Retaliation System
When any recruit in a marching group is attacked:
- Entire group immediately targets the attacker
- Group coordinates to eliminate the threat
- After 5 seconds, automatically resumes original march
- You receive notifications about the engagement
Defensive Commands
Stop Command:
- Recruits raise shields and enter guard mode
- Only retaliate when directly attacked
- Multiple shield activation methods ensure reliability
- Perfect for holding strategic positions
Cancel Command:
- Comprehensive AI state clearing
- Multiple pathfinding methods ensure recruits return
- Cancels any active raid missions
- Robust error handling prevents failures
⚙️ Configuration
Configuration file: config/recruits-addon.toml (auto-generated on first run)
Entity Blacklist
Customize which entities recruits should avoid during raids:
[blacklist.entities]
entityBlacklist = [
"minecraft:villager",
"minecraft:iron_golem",
"minecraft:cat",
"minecraft:wolf",
"minecraft:creeper"
]
? Advanced Usage Examples
Tactical Scenarios
Base Defense Setup:
/recruits march -100 64 -100 group 1 formation CIRCLE
/recruits march 100 64 100 group 2 formation SQUARE
/recruits stop
Coordinated Attack:
/recruits march 0 64 -200 group 1 formation WEDGE
/recruits march 50 64 -200 group 2 formation LINE
/recruits raid 0 64 -150 group 1
/recruits raid 0 64 -150 group 2
Escort Mission:
/recruits follow @p formation CIRCLE
/recruits march ~ ~ ~20 formation LINE
Group Management
Multi-Group Operations:
# Send different groups to different locations
/recruits march 100 64 0 group 1 formation LINE
/recruits march -100 64 0 group 2 formation SQUARE
/recruits raid 0 64 200 group 3 formation WEDGE
# Recall specific group
/recruits cancel group 1
# Stop all groups
/recruits stop
?️ Troubleshooting
Common Issues
Q: Recruits not responding to commands
- Ensure recruits are actually owned by you
- Check that groups are not disabled in the GUI
- Verify recruits are not stuck or in combat
Q: GUI buttons not working
- Make sure you have active recruit groups
- Check that recruits are alive and not disabled
- Restart the GUI if buttons appear grayed out
Q: Distance limitations
- This mod removes ALL distance limitations
- Commands work from anywhere in the world
- If recruits seem unresponsive, they may be in unloaded chunks
Q: Recruits not raising shields on stop
- The mod tries multiple methods to activate shields
- Ensure recruits have shields equipped
- Some recruit types may not support shield mechanics
Debug Information
Enable debug logging in your log4j2.xml:
<Logger level="debug" name="com.mchivellian.recruitsaddon"/>
? Acknowledgments
- TalhaNation for the excellent base Recruits mod
- The community for feedback and testing
Enjoy commanding your recruits with tactical precision! ⚔️
评论 0
登录后参与评分
还没有评论,来抢沙发吧