MatchMaking (MM) — 团队 PvP 对战框架
MatchMaking (MM) 是一个服务端 PvP 框架,旨在为你的 Minecraft 服务器带来有组织、竞争性的团队对战。受团队射击游戏启发,它提供了运行结构化比赛所需的一切功能——从队伍管理、出生点到旗帜占领机制和自定义 HUD——所有配置均可通过游戏内菜单完成,无需触碰任何配置文件。
无论你是与朋友运营小型私人服务器,还是构建竞技性 PvP 玩法,MatchMaking (MM) 都为管理员提供了随时设置和管理比赛的工具。
队伍系统
玩家通过专用图形用户界面(默认按键:G)创建并加入队伍。队伍拥有三种角色——所有者(Owner)、指挥官(Commander)和成员(Member)。指挥官可以接受或拒绝加入请求、分配角色以及踢出成员。内置的队伍聊天允许成员进行私密通信,指挥官的消息会以独特的颜色高亮显示。最大队伍人数可配置。
比赛设置
管理员使用 MM Controller 物品在世界中放置和配置关键点——包括大厅位置、队伍出生点和旗帜占领区域。随后通过 GUI 组装比赛:选择参与队伍、分配他们的大厅和出生点、设定得分目标、比赛时长、击杀得分奖励,并选择激活的套装(kits)和旗帜。所有内容都会被保存,并可在多场比赛间重复使用。
旗帜占领
旗帜是放置在世界中的物理方块。玩家在配置的半径范围内站立即可占领旗帜。占领进度会在 HUD 上填充一个分为 4 段的圆环,并以平滑的方式实时动画显示。一旦占领成功,旗帜会持续为其所属队伍加分——即使玩家离开该区域也是如此。多名玩家共同占领可加速进程,但收益递减;如果势均力敌的队伍同时占据一个点位,则会导致僵持状态,进度冻结。旗帜可设置为占领即获胜,或采用坚守得分模式。
套装系统
比赛中的每个队伍槽位都可以分配一个套装组。当活跃阶段开始时,每位玩家的背包内容会被保存在服务端,并替换为他们选择的套装。玩家在大厅阶段选择自己的装备配置。死亡后重新给予套装;比赛结束时(包括手动执行 /match stop),原始背包内容将完全恢复——即使是在比赛中途断开的玩家也能恢复。
HUD
记分板 —— 玩家头像排列带有重叠效果,己方队伍在左侧,敌方在右侧,分数显示在中间。仅在活跃阶段可见。
比赛计时器 —— 位于记分板左侧,随着时间流逝改变颜色(白色 → 橙色 → 红色)。
占领圆环 —— 当你处于旗帜区域内时,记分板下方显示分为 4 段的环形指示器。填充方向、颜色(蓝色 = 己方,红色 = 敌方)以及平滑插值提供了清晰的实时反馈。
旗帜所有权面板 —— 右上角显示比赛中所有旗帜的颜色方块,让你一目了然地掌握地图状态。
结果叠加层 —— 居中显示的 WIN / LOSS / DRAW 屏幕,比赛结束时播放号角声,持续时间可配置。
盟友发光
队友在墙壁后方最多 50 格距离内可见(可配置)。发光颜色动态变化:正常为绿色,最近开火过变为橙色,生命值危急时变为红色。基于 Entity.isCurrentlyGlowing() 的 Mixin 实现,确保完全兼容。
配置
config/examplemod-common.toml 中包含超过 15 个选项,涵盖占领速度加成、衰减行为、得分间隔、友军伤害、队伍人数限制、发光阈值、HUD 计时器警告颜色、大厅持续时间等。
要求
Minecraft 1.21.1
NeoForge 21.1.x
客户端和服务端均需安装
MatchMaking (MM) — Team PvP Match Framework
MatchMaking (MM) is a server-side PvP framework that brings organized, competitive team matches to your Minecraft server. Inspired by team-based shooters, it provides everything you need to run structured games — from team management and spawn points to flag capture mechanics and a custom HUD — all configured through in-game menus without touching a single config file.
Whether you're running a small private server with friends or building a competitive PvP gamemode, MatchMaking (MM) gives admins the tools to set up and manage matches on the fly.
Team System
Players create and join teams through a dedicated GUI (default key: G). Teams have three roles — Owner, Commander, and Member. Commanders can accept or reject join requests, assign roles, and kick members. A built-in team chat lets members communicate privately, with commander messages highlighted in a distinct color. Maximum team size is configurable.
Match Setup
Admins use the MM Controller item to place and configure points in the world — lobby spots, team spawns, and flag capture zones. Matches are then assembled through a GUI: pick which teams participate, assign their lobby and spawn points, set a score goal, match duration, kill score reward, and choose which kits and flags are active. Everything is saved and can be reused across multiple matches.
Flag Capture
Flags are physical blocks placed in the world. Players capture them by standing in the configured radius. Capture progress fills a 4-segment ring on the HUD that animates smoothly in real time. Once captured, a flag continuously awards points to its owning team — even after players leave the zone. Multiple players speed up capture with diminishing returns; equal teams on a point cause a standoff with progress frozen. Flags can be set to instant-win on capture or to hold-and-score mode.
Kit System
Each team slot in a match can have an assigned kit group. When the active phase begins, every player's inventory is saved server-side and replaced with their chosen kit. Players pick their loadout during the lobby phase. On death the kit is re-given; on match end (including manual /match stop) the original inventory is fully restored — even for players who disconnect mid-match.
HUD
Scoreboard — player heads arranged with overlap, your team on the left, enemies on the right, score in the center. Visible only during active phase.
Match timer — positioned left of the scoreboard, changes color as time runs low (white → orange → red).
Capture rings — 4-segment donuts shown below the scoreboard when you're inside a flag zone. Fill direction, color (blue = yours, red = enemy), and smooth interpolation give clear real-time feedback.
Flag ownership panel — top-right corner shows colored squares for every flag in the match so you always know the map state at a glance.
Result overlay — centered WIN / LOSS / DRAW screen with a horn sound on match end, duration configurable.
Ally Glow
Teammates are visible through walls up to 50 blocks away (configurable). Glow color changes dynamically: green normally, orange when they fired recently, red when their HP is critically low. Built with a Mixin on Entity.isCurrentlyGlowing() for full compatibility.
Configuration
Over 15 options in config/examplemod-common.toml covering capture speed bonus, decay behavior, score intervals, friendly fire, team size limits, glow thresholds, HUD timer warning colors, lobby duration, and more.
Requirements
Minecraft 1.21.1
NeoForge 21.1.x
Required on both client and server
评论 0
登录后参与评分
还没有评论,来抢沙发吧