promotional bannermobile promotional banner

PlayerRules - Per player gamerules in a multiplayer worlds

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.
item image
item image
item image
item image

Description

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 Team

profile avatar
Owner
  • 1
    Followers
  • 12
    Projects
  • 23.1K
    Downloads

More from taklView all