跳到正文

PlayerRules – Per player gamerules in a multiplayer worlds

作者:takl

Customize Keep Inventory, Insomnia, and Hardcore individually for each player in the same world. Change your rules through the pause menu, with server-side controls for available options.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

At a glance

  • Each player picks their own Keep Inventory, Insomnia and Hardcore in the same world.
  • Change them from a Player Rules… button in the pause menu.
  • Default follows the world’s gamerule, so nothing changes until you choose.
  • Hardcore is one-way. Once it’s on, only an op can turn it off.
  • Server owners choose which options players get for each rule, or lock a rule outright.
  • Ops can check or set anyone’s rules with /playerrules.

Setup

  1. Install the mod on the server and on every client.
  2. Press Esc and click Player Rules….
  3. Click a rule to cycle its state. Hover it to see what it does.
  4. Click Done. Your choice saves and applies straight away.

How it works

Each rule is Default, On or Off. Default follows the world’s gamerule, and the menu shows what that means right now (on or off)

  • Keep Inventory decides whether you keep your items and XP on death. On behaves exactly like vanilla keepInventory, Curse of Vanishing included. Off drops everything even when the world keeps inventory.
  • Insomnia decides whether your missed sleep summons phantoms. Turn it off and your sleepless nights stay quiet. A friend who skips bed can still draw them in, though.
  • Hardcore gives you vanilla hardcore: hardcore hearts, and spectator mode when you die. It only has Default and On, so it can add hardcore for you but never removes it from a hardcore world. You get a confirm screen first. After that you can’t switch it off yourself.

A Hardcore player who dies stays in spectator mode, across relogs and restarts, until an op brings them back.

For server owners

  • The world’s server config (serverconfig/playerrules-server.toml) has an Allowed States list for each rule. Want Keep Inventory for everyone? Allow only on. Don’t want Hardcore offered at all? Allow only default.
  • A rule with a single allowed state shows as locked in the menu.
  • Take away a state someone already picked and their choice is kept, but it acts as Default until you allow it again.
  • Edits to the file apply live. No restart needed, and open menus update too.
  • Anyone can run /playerrules <player> to see a player’s rules. Ops (level 2) can set them with /playerrules <player> <rule> <state>, and the Allowed States list doesn’t apply to them.

Requirements

  • NeoForge 21.1.259 or newer, for Minecraft 1.21.1.
  • Needed on both the server and the client.

Modpacks

Feel free to use my mods in your modpack, just don’t forget to give proper credit.

常见问题

PlayerRules – Per player gamerules in a multiplayer worlds 支持哪些 Minecraft 版本?

PlayerRules – Per player gamerules in a multiplayer worlds 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

PlayerRules – Per player gamerules in a multiplayer worlds 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

takl 的其他作品

查看全部 →