在使用 keepInventory 时增加死亡后果。当玩家没有理由滥用死亡作为免费传送和饥饿重置机制时,他们将不再这么做。
功能
- 管理员可以按玩家禁用此模组
- 玩家重生时饥饿值减半
- 玩家在死亡时损失部分或全部经验值(XP)
- 玩家在死亡时丢失带有“消失诅咒”的物品(需要 1.20.5+ 版本)
- 默认未启用: 玩家重生时生命值减少
- 如果
keepInventory 已禁用,则不生效
- 可选择玩家是否恢复所有经验值
退出选项
如果玩家希望拥有更轻松的游戏体验,可以选择退出这些惩罚。按玩家退出的方式意味着 每个人 都可以按照自己的喜好进行游戏。必须由管理员执行该命令。
/execute as USERNAME run function no_free_deaths:cmd/opt_out
配置
每一项死亡惩罚都可以单独切换:
/function no_free_deaths:cmd/toggle_drop_xp
/function no_free_deaths:cmd/toggle_curse_of_vanishing
/function no_free_deaths:cmd/toggle_respawn_hunger_penalty
NOT ENABLED BY DEFAULT
/function no_free_deaths:cmd/toggle_respawn_health_penalty
死亡时损失的等级百分比会在数据包加载时自动设置,除非手动更新,否则不会更改。虽然有点冗长,但可以将其更改为自定义数值,例如 90 表示损失 90% 的等级。
/scoreboard players set .drop_percentage no_free_deaths.drop_xp.settings 90
除了掉落一部分经验值外,你可以运行以下命令来切换为掉落足以让你从 0 级升至当前等级的全部经验点数。启用“完全掉落经验值”意味着玩家将始终掉落其所有经验值,但它可以被完全恢复。
/function no_free_deaths:cmd/toggle_drop_xp_in_full
此数据包在首次加载时会启用 keepInventory。如果之后禁用了 keepInventory,则在重新加载时将不会再次启用它。
Adds consequences to dying with keepInventory. Players don't abuse death as a free teleport and hunger reset mechanic when they have no reason to.
Features
- Can be disabled per-player by admins
- Players will respawn at half hunger
- Players lose some or all XP on death
- Players lose Curse of Vanishing items on death (requires 1.20.5+)
- Not enabled by default: Players will respawn with less health
- Does nothing if
keepInventory is disabled
- Pick whether players recover all their XP
Opt-out
Players can be opted out of the consequences if they would prefer a more relaxed
gaming experience. Per-player opt-out means everyone can play how they want
to. An admin must be the one to run the command.
/execute as USERNAME run function no_free_deaths:cmd/opt_out
Configure
Every penalty for death can be toggled individually:
/function no_free_deaths:cmd/toggle_drop_xp
/function no_free_deaths:cmd/toggle_curse_of_vanishing
/function no_free_deaths:cmd/toggle_respawn_hunger_penalty
NOT ENABLED BY DEFAULT
/function no_free_deaths:cmd/toggle_respawn_health_penalty
The percentage of levels lost on death is set automatically when the data pack is loaded and will not be changed unless it is manually updated. It's a bit verbose, but can be changed to a custom amount e.g. 90 to lose 90% of levels.
/scoreboard players set .drop_percentage no_free_deaths.drop_xp.settings 90
Instead of dropping a portion of your XP, you can run the following command to toggle dropping as many experience points as it would take to get you from 0 levels to your current level. Enabling "drop XP in full" means players will always drop all their XP, but it can be entirely recovered.
/function no_free_deaths:cmd/toggle_drop_xp_in_full
This data pack enables keepInventory the first time it is loaded. If keepInventory is disabled after that, it will not be re-enabled on load.
评论 0
登录后参与评分
还没有评论,来抢沙发吧