Spawn Delay 是一款 Minecraft 模组(支持服务端和客户端),在玩家死亡后完全重生前,添加了一个可自定义的延迟(计时器)。
工作原理
当玩家死亡并点击“重生”按钮时:
- 玩家会被传送回出生点。
- 游戏模式切换为旁观者模式。
- 玩家在出生点被“冻结”——在旁观者模式下,模组会阻止玩家穿墙或探索地图。
- 屏幕上(热键栏正上方)会出现一个倒计时计时器,显示距离完全重生的剩余时间。
- 计时结束后,游戏模式会自动切回生存模式。
离线暂停(防重新登录保护)
如果玩家在计时器运行期间断开与服务器的连接,倒计时将暂停。下次加入服务器时,计时器会从停止的位置继续,使玩家保持在旁观者模式的冻结状态。
配置
默认延迟时间为 30 秒。
服务器管理员可以在首次启动服务器后生成的配置文件中更改此值。需要修改的参数如下:
respawnDelaySeconds: 重生延迟的持续时间(秒)。(默认值:30)
postRespawnGameMode: 延迟结束后玩家将被设置的游戏模式。选项包括:SURVIVAL(生存)、CREATIVE(创造)、ADVENTURE(冒险)、SPECTATOR(旁观者)。(默认值:SURVIVAL)
本地化
该模组支持以下语言的屏幕计时器文本:
- 英文: "Respawning in: X s"
- 俄文: "Возрождение через: X сек"
Spawn Delay is a Minecraft mod (server and client-side) that adds a customizable delay (timer) before a player can fully respawn after dying.
How it works
When a player dies and clicks the "Respawn" button:
- The player is teleported to their spawn point.
- Their game mode is switched to Spectator.
- The player is "frozen" at their spawn location — the mod prevents them from moving through blocks or exploring the map while in spectator mode.
- A countdown timer appears on the screen (just above the hotbar) showing the time remaining until full respawn.
- Once the timer expires, the game mode automatically changes back to Survival.
Offline Pause (Relog Protection)
If a player disconnects from the server while the timer is running, the countdown is paused. The next time they join the server, the timer will resume exactly from where it stopped, keeping the player frozen in spectator mode.
Configuration
The default delay time is 30 seconds.
Server owners can change this value in the configuration file that is generated after the server is started for the first time. The parameters to change are:
respawnDelaySeconds: The duration of the respawn delay in seconds. (Default: 30)
postRespawnGameMode: The game mode the player will be set to after the delay. Options: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR. (Default: SURVIVAL)
Localization
The mod supports the following languages for the on-screen timer:
- English: "Respawning in: X s"
- Russian: "Возрождение через: X сек"
评论 0
登录后参与评分
还没有评论,来抢沙发吧