一个完全服务端的玩家倒地与复活模组

复活倒地的玩家:玩家不会直接死亡,而是血量降至半颗心并被迫爬行。灵感源自《使命召唤》僵尸模式。完全服务端运行,兼容原版客户端及 Geyser Bedrock 客户端。
要复活你倒地的朋友,只需在他们身上保持 右键点击(空手状态)(或在 Geyser Bedrock 客户端上使用 左扳机键)。
功能特性
倒地与复活机制
- 玩家不会直接死亡,而是进入倒地状态,血量降至半颗心并强制爬行。
- 其他玩家可以通过持续右键点击来复活倒地玩家;进度条会以百分比和浅蓝色轮廓显示。
- 倒地玩家会随时间流血致死(默认时间为 45 秒),若未及时复活则死亡。
- 玩家名称和轮廓颜色会根据剩余流血时间从黄色渐变为深红色。
- 倒计时器会显示在倒地玩家头顶及其物品栏上方。
- 提供可点击的
/bleedout 命令,允许玩家提前放弃并重生。
- 在倒地状态下使用不死图腾可自我复活。
兼容性
- 完全服务端运行;Java 版客户端 无需安装任何客户端插件。
- 支持 Geyser Bedrock 客户端(仅存在轻微视觉限制)。
- 专为广泛兼容墓碑类模组而设计。
- 不会覆盖自定义队伍设置,并提供仅限同队队友复活的选项(详见下方配置说明!)。
- 非常适合整合包使用。
游戏完整性保护
- 保留原始伤害来源,以确保死亡消息准确无误。
- 对倒地时登出或反复倒地的玩家进行惩罚,缩短其流血致死时间。
- 不干扰 重生锚、死亡统计 或 不死图腾 的功能。
音频反馈
- 包含原版音效,用于提示复活成功、玩家倒地以及流血过程中的渐进式心跳声。
轻量级依赖
- 仅需 Fabric API
- 当前 JAR 包大小不足 50KB
为服务器管理员提供的强大配置选项
Configuration
[config location]/DownButNotOut/config.json
{
// WARNING: DO NOT COPY AND PASTE THESE COMMENTS, INVALID JSON WILL HALT THE STARTUP.
// SIMPLY DELETE THE CONFIG AND RESTART YOUR SERVER FOR A FRESH DEFAULT CONFIGURATION.
// Enables the mod
// Options: true, false
"MOD_ENABLED": true,
// Forces players to die immediately if they are alone in the server instead of being downed
// Options: true, false
"SKIP_DOWNED_STATE_IF_NO_OTHER_PLAYERS_ONLINE": true,
// Requires players to use an empty hand to revive a downed player (can't hold a pickaxe or other item)
// Options: true, false
"REVIVING_REQUIRES_EMPTY_HAND": true,
// Makes players die immediately instead of being downed in lava
// (it doesn't make sense to be swimming in lava)
// NOTE: the void instantly kills players no matter what
// Options: true, false
"ALLOW_DOWNED_STATE_IN_LAVA": false,
// Uses overlay messages (above the experience bar) instead of chat messages
// NOTE: chat messages are throttled appropriately for revive progress percentage
// Options: true, false
"USE_OVERLAY_MESSAGES": true,
// 系统消息会在玩家倒地或被救起时在聊天栏或覆盖层中播报
// 选项:true, false
"BROADCAST_PLAYER_DOWNED_NOTIFICATIONS": true,
// 为倒地的玩家添加发光效果
// 注意:在 Geyser Bedrock 客户端上不可见
// 选项:true, false
"DOWNED_PLAYERS_HAVE_GLOW_EFFECT": true,
// 为倒地的玩家添加失明效果
// 选项:true, false
"DOWNED_PLAYERS_HAVE_BLINDNESS_EFFECT": true,
// 创建自定义临时队伍以更改发光和名称颜色
// 注意:为了兼容性,如果玩家已经是某个队伍的一部分,则不会更改队伍(无论此设置如何)
// 选项:true, false
"USE_CUSTOM_DOWNED_TEAMS": true,
// 限制复活只能由同一队伍的队友进行(如果一方没有队伍,也可以进行复活)
// 如果两名玩家处于不同的自定义队伍,尝试复活时会显示“Wrong team!”消息
// 注意:非常适合拥有自定义队伍的服务器,但对于添加队伍的数据包可能无法正常工作
// 选项:true, false
"RESTRICT_REVIVE_TO_TEAMMATES_OR_TEAMLESS": false,
// 在倒地玩家头顶显示带有“◥REVIVE◤”悬停提示的名称标签,并显示失血计时器
// 选项:true, false
"SHOW_REVIVE_TAG_ABOVE_PLAYER": true,
// 被救起后,复活惩罚持续多少个刻(20 刻等于 1 秒)
// 注意:冷却时间结束后,BLEEDING_OUT_DURATION_TICKS 将重置
// 最小值:0,最大值:999999999999999999
"REVIVE_PENALTY_COOLDOWN_TICKS": 600,
// 将剩余的 BLEEDING_OUT_DURATION_TICKS 除以该乘数,使得玩家在反复被救起后失血速度大大加快
// 注意:设置为 4 意味着玩家在冷却时间内再次倒地时,其剩余的 BLEEDING_OUT_DURATION_TICKS 仅为上次倒地时的四分之一
// 最小值:1(禁用),最大值:999(第二次倒地前立即死亡)
"REVIVE_PENALTY_MULTIPLIER": 4,
// 倒地玩家在被失血致死之前有多少个刻的时间(20 刻等于 1 秒)
// 最小值:-1(玩家永远不会失血,且复活惩罚无效),最大值:999999999999999999
"BLEEDING_OUT_DURATION_TICKS": 900,
// 玩家需要按住右键多长时间才能救起另一名玩家(单位为刻)
// 最小值:0(即时),最大值:999999999999999999(几乎不可能完成)
"REVIVE_DURATION_TICKS": 60,
// 附近玩家听到的心跳声的音量和距离范围
// 最小值:0.0(禁用),最大值:5.0
"HEARTBEAT_SOUND_VOLUME": 1.0,
// 附近玩家听到的救起成功声音的音量和距离范围
// 最小值:0.0(禁用),最大值:5.0
"REVIVED_SOUND_VOLUME": 2.5,
// 附近玩家听到的倒地声音的音量和距离范围
// 最小值:0.0(禁用),最大值:5.0
"DOWNED_SOUND_VOLUME": 1.0,
// 应用于匍匐前进的倒地玩家的基础移动速度
// 注意:被救起后,玩家的基础移动速度会重置为 0.1,
// 倒地状态下更高的速度是不合理的
// 最小值:0.00001,最大值:0.1(正常行走速度)
"DOWNED_MOVE_SPEED": 0.01
}
已知问题
Geyser Bedrock 客户端:
Vanilla 客户端:
Essential Mod Client:
使用方法
- 将 .jar 文件直接放入 Fabric 服务器的 mods 文件夹中。不要在客户端侧安装。
- 确保 Fabric API 也位于服务器的 mods 文件夹中。
- 让你的朋友正常加入服务器并享受游戏吧!对于 Geyser 客户端无需额外步骤,开箱即用!
免责声明
本模组灵感来源于《使命召唤》、《堡垒之夜》、《PUBG》、《求生之路》、《无主之地》等第一人称射击游戏,这些游戏允许玩家进入倒地状态而非直接死亡并进行复活。但本模组与任何具有此玩法特征的游戏系列均无关联。
许可证
© phasmoware
查看源代码以获取 MIT 许可证信息
欢迎将此模组用于整合包!
A Fully Server-Side Player Downed and Revive Mod

Revive downed players: instead of dying, players drop to half a heart and crawl. Inspired by Call of Duty Zombies. Fully server-side and compatible with vanilla and Geyser Bedrock clients.
To revive your downed friend, simply hold right-click with an empty hand on them (or left trigger on a Geyser Bedrock Client)
Features
Getting Downed and Revived
- Players are downed instead of dying, dropped to half a heart and forced to crawl.
- Other players can revive downed players by holding right-click; progress is shown with a percentage and light blue color outline.
- Downed players bleed out over time (45 seconds by default) and die if not revived.
- Player names and outline colors shift from yellow to dark red based on remaining time before bleeding out.
- A bleed out timer is shown above the downed player and also above the downed player's hotbar
- A /bleedout clickable command lets players give up early and respawn.
- Use a Totem Of Undying while downed to revive yourself
Compatibility
- Fully server-side; no client install required for Java Edition.
- Works with Geyser Bedrock clients (minor visual limitations only).
- Designed for broad compatibility with grave mods.
- Doesn't overwrite custom teams and has options for reviving only from the same team (check the configuration options below!)
- Perfect for modpacks.
Gameplay Integrity
- Preserves the original damage source for accurate death messages.
- Penalizes players who log out while downed or are downed repeatedly by shortening the bleed-out timer.
- Does not interfere with respawn anchors, death statistics, or totems of undying.
Audio Feedback
- Includes vanilla sounds for being revived, being downed, and a progressive heartbeat during bleed-out.
Lightweight Dependencies
- Only requires Fabric API
- Currently under 50KB jar size
Robust configuration for Server Administrators
Configuration
[config location]/DownButNotOut/config.json
{
// WARNING: DO NOT COPY AND PASTE THESE COMMENTS, INVALID JSON WILL HALT THE STARTUP.
// SIMPLY DELETE THE CONFIG AND RESTART YOUR SERVER FOR A FRESH DEFAULT CONFIGURATION.
// Enables the mod
// Options: true, false
"MOD_ENABLED": true,
// Forces players to die immediately if they are alone in the server instead of being downed
// Options: true, false
"SKIP_DOWNED_STATE_IF_NO_OTHER_PLAYERS_ONLINE": true,
// Requires players to use an empty hand to revive a downed player (can't hold a pickaxe or other item)
// Options: true, false
"REVIVING_REQUIRES_EMPTY_HAND": true,
// Makes players die immediately instead of being downed in lava
// (it doesn't make sense to be swimming in lava)
// NOTE: the void instantly kills players no matter what
// Options: true, false
"ALLOW_DOWNED_STATE_IN_LAVA": false,
// Uses overlay messages (above the experience bar) instead of chat messages
// NOTE: chat messages are throttled appropriately for revive progress percentage
// Options: true, false
"USE_OVERLAY_MESSAGES": true,
// System messages announce when a player is downed or revived in the chat or overlay
// Options: true, false
"BROADCAST_PLAYER_DOWNED_NOTIFICATIONS": true,
// Give players that are downed a glow effect
// NOTE: not visible on Geyser Bedrock Clients
// Options: true, false
"DOWNED_PLAYERS_HAVE_GLOW_EFFECT": true,
// Give players that are downed a blindness effect
// Options: true, false
"DOWNED_PLAYERS_HAVE_BLINDNESS_EFFECT": true,
// Create a custom temporary team to change glow and name colors
// NOTE: team will not be changed if player is already part of team, regardless of this setting for compatability
// Options: true, false
"USE_CUSTOM_DOWNED_TEAMS": true,
// Restricts reviving to only be valid from players on the same team (revive is also valid if one player is teamless)
// If both players are on different custom teams, a message "Wrong team!" will appear on revive attempt
// NOTE: works great for servers with custom teams, but may not work properly for datapacks that add teams
// Options: true, false
"RESTRICT_REVIVE_TO_TEAMMATES_OR_TEAMLESS": false,
// Makes a name tag with "◥REVIVE◤" hover above a downed player visible with a bleed out timer
// Options: true, false
"SHOW_REVIVE_TAG_ABOVE_PLAYER": true,
// How many ticks the revive penalty lasts for after being revived (20 per second)
// NOTE: after the cooldown the BLEEDING_OUT_DURATION_TICKS is reset
// Min: 0, Max: 999999999999999999
"REVIVE_PENALTY_COOLDOWN_TICKS": 600,
// Divides the remaining BLEEDING_OUT_DURATION_TICKS by this multiplier so that a
// player bleeds out much faster after being revived over and over
// NOTE: a value of 4 would make it so that a player's remaining BLEEDING_OUT_DURATION_TICKS
// are a quarter of what they were during the last time they were downed within the cooldown
// Min: 1 (disabled), Max: 999 (instant death after second time being downed before cooldown)
"REVIVE_PENALTY_MULTIPLIER": 4,
// How long in ticks a downed player has until they bleed out and die (20 per second)
// Min: -1 (Player never bleeds out and revive penalty does nothing), Max: 999999999999999999
"BLEEDING_OUT_DURATION_TICKS": 900,
// How long in ticks a player has to hold right-click on a player to revive them
// Min: 0 (instant), Max: 999999999999999999 (virtually impossible)
"REVIVE_DURATION_TICKS": 60,
// How loud and how far away the heartbeat sound plays for nearby players
// Min: 0.0 (disabled) Max: 5.0
"HEARTBEAT_SOUND_VOLUME": 1.0,
// How loud and how far away the revived sound plays for nearby players
// Min: 0.0 (disabled) Max: 5.0
"REVIVED_SOUND_VOLUME": 2.5,
// How loud and how far away the downed sound plays for nearby players
// Min: 0.0 (disabled) Max: 5.0
"DOWNED_SOUND_VOLUME": 1.0,
// The base move speed to apply to the crawling downed player
// NOTE: after being revived, the player is set back to 0.1 base move speed,
// a faster speed does not make sense when downed
// Min: 0.00001, Max: 0.1 (normal walking speed)
"DOWNED_MOVE_SPEED": 0.01
}
Known Bugs
Geyser Bedrock Clients:
- slowly walk instead of crawling
- can't see glowing effect on downed players
Vanilla Clients:
- None (please report via GitHub issues!)
Essential Mod Client:
- Hosting a server from a single player world does not load this mod
How to Use
- Place the .jar file directly into the Fabric server’s mods folder. Do not install it on the client side.
- Make sure Fabric API is also in the server's mods folder.
- Have your friends join the server normal and enjoy! No extra steps for Geyser clients, it just works!
Disclaimer
This Mod is inspired by first-person shooters like Call of Duty, Fortnite, PUBG, Left For Dead, Borderlands, ect. that allow you to be downed instead of dying and revived but this mod is not affiliated with any franchise with this gameplay feature.
License
© phasmoware
Check the source code for the MIT License
Feel free to use this Mod in modpacks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧