Regen Choice
Regen Choice 是一款 Fabric 模组,允许每位玩家在首次加入世界时选择自己的生命值恢复模式。
当新玩家加入时,他们会在聊天栏收到一条包含按钮的消息,可以选择以下两种模式之一:
- 自然恢复 — 玩家保持 Minecraft 默认的生命值恢复机制。
- 无恢复 — 该玩家的自然生命值恢复将被禁用。
这适用于生存世界、多人服务器、挑战地图、硬核风格玩法,或任何希望让玩家自行选择难度风格的地图。
功能特性
- 按玩家独立选择恢复模式
- 通过聊天按钮实现便捷的首次设置
- 若聊天按钮无法正常工作,提供命令备用方案
- 管理员/OP 命令可重置或强制指定玩家的选项
- 选项按世界单独保存
- 内置法语翻译
- 其他语言默认使用英语
工作原理
当玩家首次加入某个世界时,模组会在聊天栏中发送一个选择提示。
玩家可以选择:
- 普通模式:保留自然生命值恢复
- 硬核模式:禁用该玩家的自然生命值恢复
一旦玩家选择了恢复模式,他们将无法自行更改。
只有服务器中的 OP 玩家,或在单人/LAN 世界中启用命令的玩家,才能在之后更改某位玩家的恢复模式。
命令
玩家命令
如果聊天按钮无法正常工作,玩家可以使用以下命令手动选择模式:
/regenchoice_select [normal/hardcore]
示例:
/regenchoice_select normal
/regenchoice_select hardcore
管理员 / OP 命令
这些命令仅限服务器中的 OP 玩家,或在单人/LAN 世界中启用命令的玩家使用。
重置玩家的选择
此命令会将选择提示重新发送给指定玩家:
/regenmodeadmin reset [PLAYER]
示例:
/regenmodeadmin reset Steve
强制设定玩家的恢复模式
此命令可为指定玩家强制设定恢复模式:
/regenmodeadmin set [normal/hardcore] [PLAYER]
示例:
/regenmodeadmin set normal Steve
/regenmodeadmin set hardcore Steve
权限说明
玩家做出选择后,仅以下用户可更改其选择:
- 服务器中的 OP 玩家
- 在单人模式中启用命令的玩家
- 在 LAN 世界中启用命令的玩家
普通玩家在选择后无法自行更改恢复模式。
数据存储
模组将每位玩家的 UUID 及其恢复选择存储在地图 config 文件夹内的 .txt 文件中。
这意味着恢复选项是按世界/地图单独保存的。
支持语言
本模组已翻译成以下语言:
其他语言默认使用英语。
兼容性
本模组专为 Fabric 加载器制作。
注意事项
普通玩家一旦选定恢复模式,即为永久生效。
管理员和 OP 玩家仍可随时使用管理员命令重置或强制设定玩家的恢复模式。
祝游戏愉快!
Regen Choice
Regen Choice is a Fabric mod that lets each player choose their own health regeneration mode when joining a world for the first time.
When a new player joins, they receive a message in chat with buttons allowing them to choose between two modes:
- Natural Regeneration — the player keeps normal Minecraft health regeneration.
- No Regeneration — natural health regeneration is disabled for that player.
This is useful for survival worlds, multiplayer servers, challenges, hardcore-style gameplay, or any world where players should be able to choose their own difficulty style.
Features
- Per-player regeneration mode selection
- Chat buttons for an easy first-time setup
- Command fallback if chat buttons do not work correctly
- Admin/OP commands to reset or force a player’s choice
- Choices are saved per world
- French translation included
- English used as the default language for all other languages
How it works
When a player joins a world for the first time, the mod sends them a choice prompt in chat.
The player can choose:
- Normal mode: keeps natural health regeneration enabled
- Hardcore mode: disables natural health regeneration for that player
Once a player has chosen their regeneration mode, they cannot change it themselves.
Only an OP player on a server, or a player with commands enabled in Singleplayer or LAN, can change a player’s mode afterward.
Commands
Player command
If the chat buttons do not work correctly, players can choose their mode manually with:
/regenchoice_select [normal/hardcore]
Examples:
/regenchoice_select normal
/regenchoice_select hardcore
Admin / OP commands
These commands can only be used by OP players on a server, or by players with commands enabled in Singleplayer or LAN worlds.
Reset a player’s choice
This command sends the choice prompt back to the selected player:
/regenmodeadmin reset [PLAYER]
Example:
/regenmodeadmin reset Steve
Force a player’s mode
This command forces a regeneration mode for a selected player:
/regenmodeadmin set [normal/hardcore] [PLAYER]
Examples:
/regenmodeadmin set normal Steve
/regenmodeadmin set hardcore Steve
Permissions
After a player has made their choice, only the following users can change it:
- OP players on a server
- Players with commands enabled in Singleplayer
- Players with commands enabled in LAN worlds
Regular players cannot change their regeneration mode after choosing it.
Data storage
The mod stores each player’s UUID and regeneration choice in a .txt file inside the world’s config folder.
This means regeneration choices are saved per world/map.
Languages
This mod is translated into:
All other languages use English by default.
Compatibility
This mod is made for Fabric.
Notes
The regeneration choice is permanent for regular players once selected.
Admins and OP players can still reset or force a player’s mode at any time using the admin commands.
Have fun!
评论 0
登录后参与评分
还没有评论,来抢沙发吧