PvpBot — Paper 端口
一款适用于 Paper/Spigot 的插件,为你的服务器添加由 AI 驱动的 PvP 机器人:拥有战斗 AI、阵营系统、自动装备、寻路和世界交互能力的真实模拟玩家。机器人会与玩家、生物以及其他机器人进行战斗,使用的方式与真实的 PvP 玩家相同。
需要 Fabric 版本?
请查看原版 Fabric PvP Bot
? 主要功能
? 机器人管理
- 生成具有独特随机名称的机器人,或从你定义的主题名称表中生成
- 一次性批量生成最多 50 个机器人,使用生成的名称或名称表
- 真实的 Minecraft 皮肤,通过用户名获取——如果安装了 SkinsRestorer,则与其协作,将获取的皮肤直接注册到其自己的存储中,以避免加入监听器悄无声息地用默认皮肤覆盖它
- 机器人从不广播加入消息——它们只是出现,不会有“X 加入了游戏”的刷屏信息,即使是一队二十个机器人也是如此
latest 选择器指向你上次生成命令产生的结果,因此你无需输入二十个名字
⚔️ 战斗系统
- 完整的近战 AI:剑、斧和原版 26.2 长矛。
- 战锤战斗包含真实战术,而非仅仅是“总是使用战锤”:
- 蓄力冲击或跳跃后发起猛烈打击
- 珍珠连击 —— 投掷末影珍珠,在空中引爆蓄力冲击,利用由此产生的传送达到比自跳高得多的位置
- 有时故意使用普通武器进行近战(
special-weapon-melee-chance),而不是每次交战都使用战锤
- 读取 incoming 的猛烈打击并用盾牌格挡或闪避回应
- 属性切换
- 穿透切换
- 战锤眩晕
- 长矛突刺 —— 在冷却期间连续刺击以接近目标,配合突进效果
- 弓和弩的战斗,带有拉弓时机和对侧移目标的提前量预测
- 战锤感知远程作战 —— 机器人会在看到目标持有战锤后的几秒内记住这一点,并优先装填缓慢下降药水箭矢来对抗该目标,而不是使用箭袋中的下一支箭
- 基于真实跳跃时机的暴击,而非固定倍率
- 失误率和错误率——机器人可能会犹豫、笨拙或完全挥空
- 转向速度受到速率限制,而非瞬间瞄准,因此瞄准会像真实玩家一样明显摆动和滞后
- 检测系统:直到机器人有视线、站在足够近的距离无视视线被发现,或直接被指示,否则没有任何目标是目标。潜行和隐身确实会降低被发现的距离
? 牵引绳(护航纪律)
- 保持目标玩家在指定领导者的范围内,使用少量机器人作为执行者
- 超出半径会受到一次真实的、故意较弱的警告性推击,将其推回领导者身边——回到半径内即可清除警告,因此下一次是全新的事件,而非立即升级
- 在仍有警告的情况下再次偏离(或从未返回)会使整个护航团队真正敌对,就像管理员对每个机器人运行
/pvpbot attack 一样,直到手动释放
?️ 实用工具与生存
- 自动装备实际携带的最佳盔甲和武器
- 自动图腾,在进入副手前有一个短暂的故意停顿
- 自动盾牌、自动食物(尊重饱和度——不会在饱腹时进食)、自动药水(不会浪费附魔金苹果,只要包中还有普通金苹果)
- 仅在真正有战斗时才提供增益药水
- 使用附近的经验球通过修补附魔自动修复磨损装备
- 蜘蛛网钉住敌人——每个机器人和整个小队都有速率限制,因此十个机器人不能对单个目标连续使用蜘蛛网
- 水桶救命 —— 针对长距离落地的真实 MLG 技巧,根据最小落地高度和反应窗口进行调整,与其他操作一样可能失误
- 濒死时使用末影珍珠逃脱,或追击逃跑的人
- 吸能(Draining)
? 小队传送
三种将一组机器人带到某处的方法,每种方式呈现出不同的到达效果:
- 传送门 —— 在目的地周围散布真实的、标准大小的下界传送门(真实的黑曜石框架,内部点燃),并将每组机器人安置在一个传送门中,最多 5 人共享一个地面传送门或 3 人共享一个悬浮传送门。永久生效:它们永远不会恢复原状,机器人也不会被这些传送门卷入真正的下界
- 珍珠 —— 为每个机器人投掷一颗真实的
EnderPearl,从着陆点上方高处发射,让原版物理引擎将其带回——真实的飞行、真实的落地震动、真实的轻微坠落伤害,没有任何模拟成分
- 裂隙 —— 一种主题化的现实撕裂传送,PvpBot 自己的 ExplosionEvent 的 Rift 双胞胎:一组或多组机器人传送到一个或多个裂隙(或一个大型共享裂隙),并在有人通过后立即关闭自身
- 所有三种方式共享相同的选择器语法(
bot、all、faction <name>、overfaction <name>、random[...])以及围绕目的地的可配置散射范围,因此没有人会堆叠在一起
? 导航与移动
- 每只机器人都带有抖动的兔子跳,这样一个小队不会同步跳跃
- A* 寻路避开障碍物,与盲目转向分开处理
- 建造 —— 使用携带的方块(或在没有方块时使用蓄力冲击)跨越间隙并向上搭建柱子以到达不可触及的目标;仅挖掘柔软的天然掩体——泥土、沙子、树叶——绝不挖掘石头或任何玩家建造的东西。每一次放置和破坏都会触发真实事件,因此 WorldGuard 等插件可以看到并拒绝它
- 放置并操控船只穿越真实的水域
- 当没有战斗时可进入漫游模式
- 符合原版标准的击退效果,包括冲刺和附魔加成
? 阵营系统
- 创建、解散、加入、离开
- 阵营间的敌对(战争)与盟友关系
- 超级阵营(Overfactions) — 将多个阵营组合为一个联盟;联盟内的所有成员自动互为盟友
- 阵营领袖 — 一名成员,无论是玩家还是机器人,整个阵营都会跟随其战斗。攻击他们或被他们攻击时,该阵营会转而攻击目标
- 按阵营覆盖设置 — 任何全局设置均可针对特定阵营进行调整,因此“新手”阵营和“硬核”阵营可以共享同一个服务器
- 各阵营的加权装备表,用于随机生成装备
- 全阵营跟随指令
? 装备包系统
- 保存当前背包中的装备为套装
- 将其给予某名玩家、机器人或整个阵营
- 重启后依然保留
?️ 预设配置
- 通过一条命令切换整个服务器的机器人行为模式 —
casual(休闲)、normal(普通)、sweaty(硬核/认真)、passive(被动),默认值为 passive
- 将当前生效的配置保存为新的预设
- 预设位于阵营覆盖之下,因此即使服务器预设发生变化,你手动调整的阵营设置仍保持不变
? 脚本
- 将一系列命令以名称保存,并使用
{1}–{9} 占位符,在运行时传入参数进行填充
wait <ticks> 暂停脚本并在稍后恢复执行,且不会阻塞服务器
- 脚本由输入命令的玩家身份运行,因此只需少敲键盘即可完成任务,而无需授予额外权限
? 命令
基础
/pvpbot spawn [name|count|names:<table>] [skinFrom|count]
/pvpbot remove <bot>
/pvpbot removeall
/pvpbot list
/pvpbot reload
战斗指令
/pvpbot attack <bot> <target>
/pvpbot fight <bot> <bot>
/pvpbot stop <bot>
/pvpbot retreat <bot|all|faction <name>|overfaction <name>|latest> [to <player|x y z>]
/pvpbot retreat stop <bot|all|faction <name>>
/pvpbot hide <bot|all|faction <name>>
/pvpbot hide stop <bot|all|faction <name>>
/pvpbot tether <target> <leader> <bot|all|faction <name>|overfaction <name>|random[...]> [radius]
/pvpbot tether stop <target>
/pvpbot tether info <target>
移动与定位
/pvpbot follow <bot> <target>
/pvpbot follow stop <bot|all>
/pvpbot guard <bot|all|faction <name>> <radius> [x y z]
/pvpbot guard stop <bot|all>
/pvpbot tp <bot|all|faction <name>> <player|bot|x y z>
/pvpbot tp portal [ground] <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot tp pearl <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot tp rift [big] <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot pause <bot|all|faction <name>>
/pvpbot resume <bot|all|faction <name>>
设置
/pvpbot set <setting> <value>
/pvpbot settings [general|combat|movement|utility|ranged|detection|building]
/pvpbot faction set <faction> <setting> <value>
阵营
/pvpbot faction create|disband <name>
/pvpbot faction join|leave <faction> <member>
/pvpbot faction hostile|peace|ally|unally <a> <b>
/pvpbot faction leader <faction> <player|bot|clear>
/pvpbot faction follow <faction> <target|stop>
/pvpbot faction set <faction> <setting> <value>
/pvpbot faction info|list
超级阵营
/pvpbot overfaction create|disband <name>
/pvpbot overfaction add <overfaction> <faction>
/pvpbot overfaction remove <faction>
/pvpbot overfaction info|list
装备包
/pvpbot kit save <name>
/pvpbot kit give <player|bot> <kit>
/pvpbot kit givefaction <faction> <kit>
/pvpbot kit delete <name>
/pvpbot kit list
预设配置
/pvpbot preset [name]
/pvpbot preset save <name>
/pvpbot preset delete <name>
/pvpbot preset off
脚本
/pvpbot script create <name>
/pvpbot script add <name> <command>
/pvpbot script show <name>
/pvpbot script remove <name> <line>
/pvpbot script delete <name>
/pvpbot script run <name> [args...]
/pvpbot script list
特别感谢 stepan 提供了原始的 Fabric 模组以及标志设计!
PvpBot — Paper Port
A Paper/Spigot plugin that adds AI-driven PvP bots to your server: real fake players with combat AI, a faction system, automatic equipment, pathfinding, and world interaction. Bots fight players, mobs, and each other, using the same tools a real PvPer would.
Need a fabric version?
Then check the original Fabric PvP Bot
? Main Features
? Bot Management
- Spawn with unique random names, or from a themed name table you define
- Mass spawn up to 50 at once, from generated names or a named table
- Real Minecraft skins, fetched by username — cooperates with SkinsRestorer if it's installed, registering the fetched skin directly in its own storage so a join listener doesn't silently overwrite it with a default
- Bots never broadcast a join message — they simply appear, no "X joined the game" spam for a squad of twenty
latest selector reaches whatever your last spawn command produced, so you never have to type out twenty names
⚔️ Combat System
- Full melee AI: swords, axes, and vanilla 26.2 spears.
- Mace combat with real tactics, not just "always mace":
- Wind-charge or jump launches into a smash
- Pearl-launch combo — throw a pearl, detonate a wind charge on it mid-flight, ride the resulting teleport far higher than a self-launch ever reaches
- Deliberately fights with an ordinary weapon some of the time (
special-weapon-melee-chance) instead of maceing every engagement
- Reads an incoming smash and answers with a shield, a dodge.
- Attribute swapping
- Breach swap
- Mace stun
- Spear lunge — chains jabs past the cooldown to close distance with Lunge
- Bow and crossbow combat with draw timing and lead-prediction on strafing targets
- Mace-aware ranged play — a bot remembers for a few seconds after seeing a target holding a mace, and prioritizes loading a Slow Falling tipped arrow against them specifically instead of whatever's next in the quiver
- Critical hits from genuine jump timing, not a flat multiplier
- Miss chance and mistake chance — a bot can hesitate, fumble, or simply whiff
- Turn speed is rate-limited, not an instant snap-aim, so aim visibly swings and lags like a real player's
- A detection system: nothing is a target until a bot has line of sight, is standing close enough to notice regardless, or has been told directly. Crouching and invisibility both genuinely reduce how far off you're spotted from
? Tether (Escort Discipline)
- Keeps a target player within range of a designated leader, using a small escort of bots as the enforcement
- Straying past the radius earns one real, deliberately weak warning hit with a shove back toward the leader — coming back inside the radius clears it, so the next time is a fresh incident, not an instant escalation
- Straying again while still warned (or never coming back) turns the whole escort hostile for real, exactly as if an admin had run
/pvpbot attack on each of them, until manually released
?️ Utilities and Survival
- Auto-equip the best armour and weapon actually carried
- Auto-totem, with a short deliberate pause before it reaches the offhand
- Auto-shield, auto-food (respects saturation — won't eat past being fed), auto-potion (won't waste an enchanted gapple while a plain one is still in the bag)
- Buff potions only when there's actually a fight to buff for
- Auto-repair worn gear with Mending from nearby XP orbs
- Cobwebs to pin an enemy — rate-limited both per bot and across the whole squad, so ten bots can't chain-web one target
- Water bucket clutch — a genuine MLG on a long fall, tuned by minimum fall height and reaction window, fumbleable like everything else
- Ender pearls to escape when nearly dead, or to run down someone fleeing
- Draining
? Squad Teleportation
Three ways to bring a group of bots somewhere, each reading as a different kind of arrival:
- Portal — scatters real, vanilla-sized nether portals (genuine obsidian frame, lit interior) around the destination and stands each group in one, up to 5 sharing a grounded portal or 3 sharing a floating one. Permanent: they never revert, and bots never get swept through to the actual Nether by them
- Pearl — a real thrown
EnderPearl per bot, launched from high above the landing spot so vanilla's own physics bring it down — real flight, real landing pop, real minor fall damage, nothing simulated
- Rift — a themed reality-tear teleport, PvpBot's own twin of ExplosionEvent's Rift: groups onto one or several rifts (or one big shared one), and closes itself instantly behind whoever just came through
- All three share the same selector grammar (
bot, all, faction <name>, overfaction <name>, random[...]) and a configurable scatter range around the destination, so nobody lands stacked on top of each other
? Navigation and Movement
- Bunny-hop with per-bot jitter, so a squad doesn't hop in lockstep
- A* pathfinding around obstacles, separate from blind steering
- Building — bridges gaps and pillars up toward an unreachable target using carried blocks (or a wind charge, with no blocks to spare); digs through soft natural cover only — dirt, sand, leaves — never stone or anything player-built. Every placement and break fires the real event, so WorldGuard and similar plugins see and can refuse it
- Boards, places, and steers boats to cross real bodies of water
- Wander mode when there's nothing to fight
- Vanilla-accurate knockback, including the sprint and enchant bonus
? Faction System
- Create, disband, join, leave
- Hostile (war) and allied relations between factions
- Overfactions — group several factions into one coalition; everything inside is automatically allied with everything else in it
- A faction leader — one member, bot or real player, whose fights the whole faction joins. Attack them or get attacked by them, and the faction turns on that target
- Per-faction settings overrides — any global setting can be tuned per faction, so a "rookies" faction and a "sweats" faction can share a server
- Weighted kit tables for random loadouts per faction
- Faction-wide follow orders
? Kit System
- Save a kit from your current inventory
- Give it to a player, a bot, or an entire faction
- Persists across restarts
?️ Presets
- Switch the whole server's bot behaviour in one command —
casual, normal, sweaty, passive ship by default
- Save whatever's currently in force as a new preset
- Layers under faction overrides, so a faction you've hand-tuned keeps its tuning when the server preset changes
? Scripts
- Save a list of commands under a name, with
{1}–{9} placeholders filled in from what you pass at run time
wait <ticks> pauses a script and resumes it later without blocking the server
- Runs as whoever typed it, so it saves typing without granting anything extra
? Commands
Basic
/pvpbot spawn [name|count|names:<table>] [skinFrom|count]
/pvpbot remove <bot>
/pvpbot removeall
/pvpbot list
/pvpbot reload
Combat Orders
/pvpbot attack <bot> <target>
/pvpbot fight <bot> <bot>
/pvpbot stop <bot>
/pvpbot retreat <bot|all|faction <name>|overfaction <name>|latest> [to <player|x y z>]
/pvpbot retreat stop <bot|all|faction <name>>
/pvpbot hide <bot|all|faction <name>>
/pvpbot hide stop <bot|all|faction <name>>
/pvpbot tether <target> <leader> <bot|all|faction <name>|overfaction <name>|random[...]> [radius]
/pvpbot tether stop <target>
/pvpbot tether info <target>
Movement & Positioning
/pvpbot follow <bot> <target>
/pvpbot follow stop <bot|all>
/pvpbot guard <bot|all|faction <name>> <radius> [x y z]
/pvpbot guard stop <bot|all>
/pvpbot tp <bot|all|faction <name>> <player|bot|x y z>
/pvpbot tp portal [ground] <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot tp pearl <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot tp rift [big] <bot|all|faction <name>|overfaction <name>|random[...]> <player|bot|x y z> [range]
/pvpbot pause <bot|all|faction <name>>
/pvpbot resume <bot|all|faction <name>>
Settings
/pvpbot set <setting> <value>
/pvpbot settings [general|combat|movement|utility|ranged|detection|building]
/pvpbot faction set <faction> <setting> <value>
Factions
/pvpbot faction create|disband <name>
/pvpbot faction join|leave <faction> <member>
/pvpbot faction hostile|peace|ally|unally <a> <b>
/pvpbot faction leader <faction> <player|bot|clear>
/pvpbot faction follow <faction> <target|stop>
/pvpbot faction set <faction> <setting> <value>
/pvpbot faction info|list
Overfactions
/pvpbot overfaction create|disband <name>
/pvpbot overfaction add <overfaction> <faction>
/pvpbot overfaction remove <faction>
/pvpbot overfaction info|list
Kits
/pvpbot kit save <name>
/pvpbot kit give <player|bot> <kit>
/pvpbot kit givefaction <faction> <kit>
/pvpbot kit delete <name>
/pvpbot kit list
Presets
/pvpbot preset [name]
/pvpbot preset save <name>
/pvpbot preset delete <name>
/pvpbot preset off
Scripts
/pvpbot script create <name>
/pvpbot script add <name> <command>
/pvpbot script show <name>
/pvpbot script remove <name> <line>
/pvpbot script delete <name>
/pvpbot script run <name> [args...]
/pvpbot script list
Big Shouout to stepan for rhe orignal fabric mod and the logo!
评论 0
登录后参与评分
还没有评论,来抢沙发吧