CMA-ES PvP Sword

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.

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.

The mod provides a set of commands to control fake players:
When spawning a fake player, the username is validated: length is limited to 3 to 16 characters, and only letters, numbers, and underscores are allowed.
 
指令 作用
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 提供一套指令用于控制假玩家:

生成假玩家时对指令中的用户名进行校验:长度限制在 3 到 16 字符,仅允许字母、数字与下划线。
 
指令 作用
spawn 在指令执行者位置生成一个假玩家
spawnAt 在指定玩家位置生成一个假玩家
remove 移除并保存指定假玩家
toggle 切换指定假玩家的战斗开关
mode 切换指定假玩家的优化/使用模式
status 输出指定假玩家的状态行
list 列举所有假玩家
clearAll 移除全部假玩家

CMA-ES PvP Sword Team

profile avatar
  • 1
    Projects
  • 28
    Downloads