Back to mods

Modrinth · Minecraft mod

PlayerPrefs

A per-player keepinventory, player locator bar, and hardcore mode configurator

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which PlayerPrefs release matches 26.2?

Updated last month
beta file 1.0.0
Game version 26.2
Loader Fabric

PlayerPrefs 1.0.0 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is PlayerPrefs required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does PlayerPrefs 1.0.0 need?

1.0.0 on 26.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by PlayerPrefs 1.0.0
required
Matching file found Matched file: 0.159.0+26.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add PlayerPrefs without breaking your instance.

Built for PlayerPrefs 1.0.0 on 26.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does PlayerPrefs add?

Have you ever ran a small minecraft server with friends, and then immediately had people complain about your gamerule configuration? The obvious choice is KeepInventory being True, but the 7 goobers who hog your ram will never stop complaining about it. I present: PlayerPrefs! No one can be upset if they specifically get what they want. This mod allows you to have certain global gamerule settings be applied to individual players only. So, some people can be set to have KeepInventory true, and some players can have it set to false. This is extended to the player locator bar, and hardcore mode.

Settings

KeepInventory

This works as normal KeepInventory, just per-player. One person dies and keeps their inventory, the other doesnt. Straight forward

Player Locator Bar

If a player has this set to "True", they can see other players that also have this setting set to "True". However, if a player has this set to "False", other players can't see them, but they are entirely cut off from seeing other players on the bar aswell. No one can see them, but they can't see anyone as a result.

Hardcore Mode

This acts, literally, as normal hardcore mode in standard survival. When someone has their hardcore mode PlayerPrefs selector set to true, they must restart the game, and the mod will send the player a packet as if they actually had hardcore mode. As a result, the player has the hardcore mode hearts without having to adjust server.preferences.

Commands

/playerprefs hardcore <player> <true/false/default> - changes the hardcore state of a player upon rejoin of the server

/playerprefs keepinventory <player> <true/false/default> - changes the keepinventory setting of a player immediately

/playerprefs locatorbar <player> <true/false/default> - changes the locator bar setting of a player immediately

/playerprefs status <player> - shows all settings for a given player

Project description from Modrinth.

Pick your setup

PlayerPrefs by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

PlayerPrefs versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.