摘要
Respawn Penalty 是一款面向 Minecraft 1.21.8 的服务端 Fabric 模组,它为死亡添加了持久化的惩罚机制,旨在遏制鲁莽的玩法行为以及滥用自杀重生(suicide-respawn)的行为。
在短时间窗口内反复死亡的玩家会遭受逐步升级的惩罚,包括最大生命值降低、饥饿值减少、虚弱、缓慢、挖掘疲劳以及暂时的睡眠恢复锁定。该系统的设计目的是在不造成永久性死亡螺旋的前提下增加生存紧张感。
该模组包含持久化的多人游戏安全 UUID 追踪、基于 Minecraft PersistentState 的服务端重启持久化、随时间推移的被动恢复,以及防止玩家通过重复睡眠循环瞬间重置惩罚的反作弊行为。
惩罚系统
当非创造模式、非旁观者模式的玩家死亡并重生时:
| 死亡连击数 |
最大生命值 |
饥饿值 |
效果 |
睡眠恢复锁定 |
| 1 |
15 |
9 |
虚弱 30秒, 缓慢 10秒, 黑暗 3秒 |
无 |
| 2 |
14 |
8 |
虚弱 45秒, 缓慢 15秒, 黑暗 4秒 |
无 |
| 3 |
12 |
7 |
虚弱 II 60秒, 缓慢 20秒, 挖掘疲劳 20秒, 黑暗 5秒 |
无 |
| 4-5 |
10 |
6 |
虚弱 II 75秒, 缓慢 25秒, 挖掘疲劳 30秒, 黑暗 6秒 |
5分钟 |
| 6+ |
10 |
6 |
虚弱 II 90秒, 缓慢 II 30秒, 挖掘疲劳 40秒, 黑暗 8秒 |
10分钟 |
仅当死亡发生在 10 分钟内的窗口中时,死亡连击数才会增加。
惩罚上限设定为最大生命值 10 和饥饿值 6,以避免永久性的死亡螺旋。
恢复
满足以下任一条件时,玩家即可恢复:
- 在非锁定的睡眠恢复状态下成功睡觉
- 在线存活 20 分钟
重复的故意死亡会暂时锁定睡眠恢复:
| 连击数 |
锁定持续时间 |
| 4-5 |
5分钟 |
| 6+ |
10分钟 |
在锁定期间,生存恢复仍然有效。
这可以防止:
死亡 -> 睡觉 -> 重置 -> 死亡
滥用循环,同时不会永久困住玩家。
恢复将还原:
- 原始最大生命值基础值
- 正常恢复状态
- 清除所有惩罚效果
反作弊保证
注意:仅当死亡发生在配置的连击窗口内时,死亡连击数才会增加。
Summary
Respawn Penalty is a server-side Fabric mod for Minecraft 1.21.8 that adds persistent death penalties to discourage reckless gameplay and repeated suicide-respawn abuse.
Players who repeatedly die within a short time window receive escalating penalties such as reduced max health, reduced food level, Weakness, Slowness, Mining Fatigue, and temporary sleep-recovery locks. The system is designed to increase survival tension without creating permanent death spirals.
The mod includes persistent multiplayer-safe UUID tracking, server restart persistence using Minecraft PersistentState, passive recovery over time, and anti-exploit behavior that prevents players from instantly resetting penalties through repeated sleep cycles.
Penalty System
When a non-creative, non-spectator player dies and respawns:
| Death streak |
Max health |
Food |
Effects |
Sleep recovery lock |
| 1 |
15 |
9 |
Weakness 30s, Slowness 10s, Darkness 3s |
none |
| 2 |
14 |
8 |
Weakness 45s, Slowness 15s, Darkness 4s |
none |
| 3 |
12 |
7 |
Weakness II 60s, Slowness 20s, Mining Fatigue 20s, Darkness 5s |
none |
| 4-5 |
10 |
6 |
Weakness II 75s, Slowness 25s, Mining Fatigue 30s, Darkness 6s |
5 minutes |
| 6+ |
10 |
6 |
Weakness II 90s, Slowness II 30s, Mining Fatigue 40s, Darkness 8s |
10 minutes |
Death streak increases only when deaths happen within 10 minutes.
Penalties cap at 10 max health and 6 food to avoid permanent death spirals.
Recovery
A player recovers when either condition happens:
- Successfully sleeps while sleep recovery is not locked
- Survives online for 20 minutes
Repeated intentional deaths temporarily lock sleep recovery:
| Streak |
Lock duration |
| 4-5 |
5 minutes |
| 6+ |
10 minutes |
Survival recovery still works during the lock period.
This prevents:
die -> sleep -> reset -> die
abuse loops without permanently trapping players.
Recovery restores:
- Original max-health base value
- Normal recovery state
- Cleared penalty effects
Anti-Exploit Guarantees
-
Respawn cannot fully restore normal health/food
-
Logout/relog keeps active penalty state
-
Server restart preserves:
- death streak
- active penalties
- recovery lock
-
Multiplayer state is isolated per UUID
-
Creative and spectator players are ignored
-
Penalty persistence survives crashes and restarts through world PersistentState
Note: Death streak only increases if deaths happen within the configured streak window.
评论 0
登录后参与评分
还没有评论,来抢沙发吧