Description
English
GunPvP — gun-fight PvP scoring for Minecraft 1.20.1 Forge
Nobody loses a gun fight to aim. They lose it to bookkeeping. Whether that was ten kills or nine. Who was actually on which team. How long you're supposed to wait before you respawn. Whether the guy who rage-quit halfway through counts as a win. Whether anyone's inventory is going to survive the match at all. GunPvP exists to take all of that off your hands, so the only thing left to argue about is how bad your aim was.
It's a scoring and match-management mod, and it does one thing: it runs gun-fight matches from the first shot to the final scoreboard. Two, three, or four players join a world, someone types /gunpvp, and a row of clickable buttons appears — 1v1, 2v2, or a three-way free-for-all. Click one and the mod takes over. It pulls online players from the server, locks the person who started it to the red side, fills the rest by join order, and tells you plainly if there aren't enough people online yet instead of throwing a stack trace at you. If you'd rather pick sides yourself, you can assign rosters by name and start on your own terms, or hand-pick exactly who fights whom.
From there the match runs itself. Everyone is teleported to their spawn, held in place through a short countdown, and dropped into the round at full health and full saturation. Every kill scores instantly and gets announced — first blood, double kill, triple kill, quad, penta, godlike, plus assists tracked quietly in the background. Dying doesn't send you to the vanilla death screen; you go spectator, watch a respawn timer tick down, and come back at your spawn point with a couple of seconds of protection so you're not farmed the moment you reappear. When one side hits the kill limit the round ends with a banner and a score callout, and once the rounds are decided — best-of-three, best-of-five, or a single round if that's what you set — the server announces the winner, the MVP, and every player's kills, deaths, assists, and K/D. Then it quietly restores everyone's inventory, health, and player state to exactly what it was before the match started. That includes the case where someone disconnects mid-fight, and the case where an admin force-stops the match halfway through. Nothing gets eaten.
Rules are meant to be changed without memorizing a command list, so almost everything lives in a GUI. Open Mods, find GunPvP, click Config, and you get three preset rule sets you can apply with one click: a quick single round to ten kills, a best-of-three, or a longer round with a five-minute cap. Below that sit toggles for friendly fire, inventory restore, and the HUD, plus one-click capture for your red and blue spawn points — stand where you want people to appear, press the button, done. There's also a loadout field if you want every match to hand out standardized weapons instead of whatever people brought. An advanced page adds six more switches for people who want them: overtime so tied series keep going until someone leads, team chat so mid-match messages only reach your own side, kill heal so every kill tops you back up, an arena radius that yanks players back to spawn if they wander out of the fight, hidden enemy nametags so you can't read a name through a wall, and an HUD scale slider from 50% to 200%. All of it applies to the next match, never mid-round.
It's built to sit alongside gun mods rather than fight them. Kills from projectile-based weapons are traced back through the projectile's owner, so TACZ-style guns credit the person who pulled the trigger instead of crediting a bullet entity or, worse, nobody. Career stats persist per player across sessions — matches played, wins, win rate, total kills, deaths, K/D, best streak — and can be cleared on request.
Requirements are simple: Minecraft 1.20.1 with Forge 47.x, and the same jar installed on both client and server, since the HUD and settings sync over custom packets. Don't run it next to the lightweight 1v1-only build; they'll both load and you'll get two scoreboards fighting over the same screen.
Worth being upfront about: the server-side flow is tested end to end — match start, team assignment, scoring, settings writes, and persistence across a restart — but the config screen and advanced page have only been verified at compile time, not clicked through on a live client. Rules are stored per world, so changing them needs OP. And a lives-based mode isn't in yet; that means reworking both respawn engines, so it's planned as a separate build rather than bolted onto this one.
If something misbehaves — a wrong score, a stuck respawn, a crash on match start — reply with the mod version, your Forge version, whether it was singleplayer or a server, and the relevant lines from logs/latest.log. If it reproduces, it gets fixed.
中文
GunPvP —— Minecraft 1.20.1 Forge 枪械 PvP 对抗计分模组
打枪输掉的原因很少是枪法,多半是算账:这局到底十杀还是九杀、谁跟谁一队、死了要等几秒、打到一半跑路的那个人算不算输、打完背包还在不在。GunPvP 就是把这些全接过去,只剩下枪法这一件事需要你自己负责。
这是一个只管计分和比赛流程的模组,只做一件事:从第一枪打到最终比分板。两到四个人进服,任意一人输入 /gunpvp,屏幕上弹出一排可点的按钮——1v1、2v2、三人混战。点下去,模组接管一切:从服务器里抓在线玩家,发起者固定在红队,其余按进服顺序补位;人不够就直接告诉你还差几个,而不会抛出一堆报错。想自己分队也行,按名字指定阵容再开赛,或者精确点出谁打谁。
接下来比赛自己跑。所有人被传到出生点,倒计时期间锁在原地,进局时满血满饱食。每次击杀立刻加分并播报——首杀、双杀、三杀、四杀、五杀、超神,助攻在后台静默统计。死亡不会弹原版死亡界面,而是转成旁观、盯着复活倒计时归零,然后回到出生点,附带几秒保护,不至于一落地就被人补掉。一方打到击杀上限,本局以横幅和比分播报结束;局数打完(三局两胜、五局三胜,或者你设的单局定胜负)后,服务器公布胜方、MVP,以及每个人的击杀、死亡、助攻和 K/D。然后它把所有人的背包、血量、状态还原成开赛前一模一样——包括中途掉线的人,也包括管理员强行终止的情况。什么都不会丢。
规则的设计前提是"不需要背指令",所以几乎全都放进图形界面。打开 Mods,找到 GunPvP,点 Config,里面有三个一键套用的预设:10 杀快速单局、三局两胜、20 杀限时五分钟。下面还有友军伤害、背包还原、HUD 三个开关,以及红蓝出生点的一键记录——站到想让玩家出现的位置,点一下按钮就行。想统一发枪的话还有一个装备包输入框,不用每人自带。点进"高级设置"还有六个开关:加时赛(打平的系列赛继续打直到分出胜负)、队伍聊天(比赛中发言只发给队友)、击杀回血(每杀一个回满)、竞技场半径(跑出圈会被拉回出生点)、隐藏敌人名牌(隔着墙也读不到对面 ID)、HUD 缩放(50% 到 200%)。所有改动都是下一场生效,绝不会打到一半突然变规则。
它是来配合枪械模组、不是来跟它们打架的。子弹类武器造成的击杀会顺着弹道找回开枪的人,TACZ 这类枪械能正确记到扣扳机的人头上,而不是记成一颗子弹,更不是记成"无来源"。生涯战绩按玩家跨场次保存——场次、胜场、胜率、总击杀、总死亡、K/D、最高连胜——需要时也能单独清零。
要求很简单:Minecraft 1.20.1 + Forge 47.x,客户端和服务端装同一个 jar,因为 HUD 和设置都走自定义网络包。别和那个只做 1v1 的精简版一起装,两个都会加载,最后会变成两块比分板抢同一块屏幕。
有件事得提前说清楚:服务端流程是端到端测过的——开赛、分队、计分、设置写入、重启后依然保留;但配置界面和高级设置页目前只过了编译验证,还没在真实客户端里逐页点过。规则按存档保存,改规则需要 OP。另外"每人多命"的命数模式还没做,那要动两套复活引擎,打算单独出一版,而不是硬塞进这个版本里。
如果哪儿不对劲——比分算错、复活卡住、开赛崩溃——回帖带上模组版本、Forge 版本、单机还是联机,以及 logs/latest.log 里对应的报错行。能复现的都会改。
