Combat Assistant 模组
适用于 Minecraft 1.21.11 (Fabric) 的 PvP 战斗辅助工具
功能特性
伤害统计追踪器
在动作栏中实时显示对敌人造成的伤害。当你击中实体时,会以红色和黄色显示确切造成的伤害量。
- 格式:
Damage: 5.2
- 追踪范围可达 30 格
- 每次击中后持续显示 3 秒
受到伤害指示器
显示你受到敌人攻击时的伤害数值。帮助你了解在战斗中承受了多少伤害。
- 格式:
Damage Taken: 3.5
- 每次击中后持续显示 3 秒
- 有助于评估威胁等级
长矛战斗辅助
提供关于长矛冲锋条件的实时反馈。该模组会明确显示执行成功冲锋攻击所需满足的条件。
状态消息:
Charge spear... - 完全蓄力你的攻击
Move forward to lunge! - 你需要向前移动 momentum(动量)
READY TO LUNGE (绿色) - 已满足最佳条件
冲锋要求:
- 攻击蓄力达到 90% 或更高
- 正在向前移动
- 处于空中或下落状态(跳跃有助于达成条件)
- 不在水中
武器切换检测
通过通知消息可视化属性切换。显示你从哪个武器切换到了哪个武器。
- 格式:
Swapped: Iron Sword to Diamond Sword
- 检测到切换时以绿色显示
- 即时确认装备变更
战锤范围辅助
手持战锤时显示距离最近的实体。帮助你判断目标是否在有效射程内。
- 格式:
Mace Range: 4.2 blocks
- 显示最近实体的距离
- 实时更新
安装方法
- 从 Releases 页面下载 modid-1.0.0.jar
- 将其放入
.minecraft/mods/ 文件夹
- 使用已安装的 Fabric Loader 启动 Minecraft
- 所有功能将自动启用
用户使用指南
下载模组。打开 Minecraft 所在的文件夹,并将模组文件保留在 mods 文件夹中。
开发者使用说明
在单人游戏中测试模组:
gradlew runClient
从源代码构建模组:
gradlew build
编译后的 JAR 文件将生成于:build/libs/modid-1.0.0.jar
PvP 战斗指南
属性切换技巧
使用热键数字键(1-9)快速切换武器。模组会通过通知消息确认每次切换,并显示你切换到了哪种武器。
长矛冲锋技巧
为了稳定命中长矛冲锋:
- 先跳跃以确保自己处于空中状态
- 按住攻击键蓄力
- 在蓄力过程中向前移动
- 观察绿色 “READY TO LUNGE” 消息
- 松开按键执行冲锋
解读伤害数值
监控造成伤害与受到伤害的数据,以调整你的策略:
- 高伤害输出:你的攻击有效命中
- 高受到伤害:你可能需要更好的护甲或治疗手段
- 记录模式以理解对阵情况
战锤战斗技巧
使用战锤时:
- 攻击前检查范围指示器
- 战锤相比剑具有更好的攻击距离
- 在近程到中型范围内最为有效
技术细节
编程语言:Java 21
Minecraft 版本:1.21.11
Fabric Loader:0.18.2 或更高版本
Fabric API:0.139.4 或更高版本
主要组件:
CombatAssistant.java - 主时钟处理器和事件监听器
SpearHelper.java - 长矛冲锋条件检测
DamageDealtTracker.java - 实体伤害追踪
DamageIndicator.java - 伤害显示系统
SpearOptimizationMixin.java - 服务端优化 Mixin
兼容性
支持多人服务器(无需服务器端模组)
支持单人世界
与其他 Fabric 模组兼容
在多人服务器上可能出现延迟优化相关的错误
从源代码构建(面向开发者)
环境要求:
构建命令:
gradlew build
运行客户端:
gradlew runClient
该模组使用 Fabric Loom 进行开发,并使用 Mixin 进行字节码修改。
许可证
本模组根据 CC0 许可证(公共领域)发布。
Combat Assistant Mod
PvP combat helper for Minecraft 1.21.11 (Fabric)
Features
Damage Dealt Tracker
Shows real-time damage dealt to enemies in the action bar. When you hit an entity, you'll see the exact amount of damage dealt displayed in red and yellow.
- Format:
Damage: 5.2
- Tracks up to 30 blocks away
- Displays for 3 seconds after each hit
Damage Taken Indicator
Displays damage you receive when hit by enemies. Helps you understand how much damage you're taking in combat.
- Format:
Damage Taken: 3.5
- Shows for 3 seconds after each hit
- Useful for assessing threat levels
Spear Combat Helper
Provides real-time feedback on spear lunge conditions. The mod shows you exactly what conditions are needed to perform a successful lunge attack.
Status messages:
Charge spear... - Charge your attack fully
Move forward to lunge! - You need forward momentum
READY TO LUNGE (green) - Optimal conditions met
Lunge requirements:
- Fully charged attack (90% or higher)
- Moving forward
- Airborne or falling (jumping helps)
- Not in water
Weapon Swap Detection
Helps to visualize attribute swaps with a notification message. Shows what weapon you swapped from and to.
- Format:
Swapped: Iron Sword to Diamond Sword
- Displays in green when swap is detected
- Confirms equipment changes instantly
Mace Range Helper
Displays the distance to the nearest entity when holding a mace. Helps you know if targets are within effective range.
- Format:
Mace Range: 4.2 blocks
- Shows nearest entity distance
- Updates in real-time
Installation
- Download modid-1.0.0.jar from the releases
- Place it in your .minecraft/mods/ folder
- Launch Minecraft with Fabric Loader installed
- All features will be enabled automatically
Usage for Users
Download the mod. Open the folder where Minecraft is stored, and keep it in the mods folder.
Usage FOR DEVS
Testing the mod in single player:
gradlew runClient
Building the mod from source:
gradlew build
The compiled JAR will be created at: build/libs/modid-1.0.0.jar
PvP Combat Guide
Attribute Swapping
Use your hotbar number keys (1-9) to quickly swap between weapons. The mod will confirm each swap with a notification message showing which weapon you switched to.
- Press hotbar keys for instant swaps
- Watch for the swap confirmation message
Spear Lunge Technique
To land consistent spear lunges:
- Jump first to guarantee you're airborne
- Charge your attack by holding the attack button
- Move forward while the attack is charging
- Watch for the green "READY TO LUNGE" message
- Release to execute the lunge
Reading Damage Numbers
Monitor both damage dealt and damage taken to adjust your strategy:
- High damage dealt: Your attacks are landing effectively
- High damage taken: You may need better armor or healing
- Track patterns to understand matchups
Mace Combat
When using a mace:
- Check the range indicator before attacking
- Mace has good reach compared to swords
- Most effective at close to medium range
Technical Details
Language: Java 21
Minecraft Version: 1.21.11
Fabric Loader: 0.18.2 or higher
Fabric API: 0.139.4 or higher
Main Components:
- CombatAssistant.java - Main tick handler and event listener
- SpearHelper.java - Spear lunge condition detection
- DamageDealtTracker.java - Entity damage tracking
- DamageIndicator.java - Damage display system
- SpearOptimizationMixin.java - Server-side optimization mixin
Compatibility
Works on multiplayer servers (no server mod required)
Works in single player worlds
Compatible with other Fabric mods
Errors might occur with lag optimization in multiplayer servers
Building from Source FOR DEVS
Requirements:
Build:
gradlew build
Run client:
gradlew runClient
The mod uses Fabric Loom for development and Mixin for bytecode modifications.
License
This mod is released under the CC0 license (public domain).
评论 0
登录后参与评分
还没有评论,来抢沙发吧