CMA-ES PvP Sword is a Fabric server-side mod for Minecraft Java Edition 1.21.11. Its core goal is to cultivate multiple independent PvP combat fake players in a server-side environment and continuously optimize their combat strategies through an evolutionary algorithm, enabling these fake players to:
-
exist in the server world as independent combat entities that can be attacked by players and other fake players;
-
autonomously find targets, approach targets, attack targets, and make advance/retreat decisions based on health, distance, and combat situation;
-
display stable and diverse combat behaviors when facing different enemies, without relying on any manually written fixed scripts;
-
be spawned, removed, toggled, switched between running modes, and have their status viewed through commands.
-
The combat strategies of these fake players are not predefined; instead, they are autonomously learned during combat through a continuously running evolutionary loop.
| 指令 | 作用 |
|---|---|
| spawn | Spawns a fake player at the command executor's location |
| spawnAt | Spawns a fake player at the specified player's location |
| remove | Removes and saves the specified fake player |
| toggle | Toggles the combat switch of the specified fake player |
| mode | Switches the optimization/usage mode of the specified fake player |
| status | Outputs the status line of the specified fake player |
| list | Lists all fake players |
| clearAll |
Removes all fake players |
CMA-ES PvP Sword 是一款面向 Minecraft Java 版 1.21.11 的 Fabric 服务端 Mod。它的核心目标是:在服务端环境下培育多个独立的 PvP 战斗假玩家,并通过进化算法持续优化它们的战斗策略,使这些假玩家能够:
-
作为独立的战斗实体存在于服务器世界中,可被玩家和其他假玩家攻击;
-
自主地寻找目标、接近目标、攻击目标,并根据血量、距离与战况做出进退决策;
-
在面对不同敌人时展现出稳定而多样的战斗行为,不依赖任何人工编写的固定脚本;
-
通过指令被生成、移除、开关、切换运行模式和查看状态。
这些假玩家的战斗策略不是预先定义的,而是在战斗过程中通过一个持续运行的进化循环自主学习得到的。
Mod 提供一套指令用于控制假玩家:
| 指令 | 作用 |
|---|---|
| spawn | 在指令执行者位置生成一个假玩家 |
| spawnAt | 在指定玩家位置生成一个假玩家 |
| remove | 移除并保存指定假玩家 |
| toggle | 切换指定假玩家的战斗开关 |
| mode | 切换指定假玩家的优化/使用模式 |
| status | 输出指定假玩家的状态行 |
| list | 列举所有假玩家 |
| clearAll | 移除全部假玩家 |