Back to mods
Partial Keepinventory project artwork

Modrinth · Minecraft mod

Partial Keepinventory

Only drop a configured percentage of items or experience.

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

Quick answer

Which Partial Keepinventory release matches 1.19.3?

Updated 3 years ago
alpha file 0.2.1
Game version 1.19.3
Loader Fabric

Partial Keepinventory 0.2.1 targets 1.19.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. 2 required mods need a matching file.

Where it goes

Is Partial Keepinventory 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 Partial Keepinventory 0.2.1 need?

0.2.1 on 1.19.3. Every mod below is checked against that same setup.

2 required mods need a matching file

Install Fabric API, Mod Menu first, but 2 required mods have no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Partial Keepinventory 0.2.1
required
No matching file
Mod Menu Needed by Partial Keepinventory 0.2.1
required
No matching file Version asked for: 5.0.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 Partial Keepinventory without breaking your instance.

Built for Partial Keepinventory 0.2.1 on 1.19.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

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

  2. 02

    Bring the mods it needs

    Install Fabric API, Mod Menu first, but 2 required mods have no matching file for this setup. Do not mix loader builds to force a match.

  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 0.2.1. It opens that exact file at the source.

About this project

What does Partial Keepinventory add?

Partial Keepinventory

NOTE: This mod is still in alpha, and I am just one person. Bugs are bound to happen.

A fabric mod for changing the behaviour of keep inventory.

For more information on what I'm planning and working on see the Roadmap.

GUI

Open the GUI using /pki-gui. This requires you to have the mod installed on the client side.

Expressions

Expressions are a way to dynamically change how items are dropped. This can be done with a simple formula that uses given variables. The value returned by the invExpression is clamped between 0 and 1.
A list of variables can be found in the provided table:

Base

Variable Meaning
spawnDistance The distance from the player to their spawnpoint
spawnX, spawnY, spawnZ The player's spawn position
playerX, playerY, playerZ The player's position

Inventory

Variable Meaning
isCommon, isUncommon, isRare, isEpic Whether an item has a certain rarity, These are 1.0 when true and 0.0 when false.
rarityPercent The configured droprate of the item's rarity.
dropPercent The static inventory droprate

Experience

Variable Meaning
xpPoints Player's XP point amount.
xpLevel Player's XP level.

Expression presets:

Distance falloff

Change DISTANCE_IN_BLOCKS to the distance from spawn where you stop dropping items (the droprate decreases linearly).

abs(1-(spawnDistance/DISTANCE_IN_BLOCKS))


Commands

Enable/disable the mod

/pki [enable|disable]

Set the drop behaviour

/pki inv mode [vanilla / static / rarity / custom]

Set droprate for the inventory/rarities (0-100)

/pki inv droprate [static / common / uncommon / rare / epic]

List players who will get the normal keepinventory behaviour

/pki inv savedPlayers list

Remove/add players who get normal keepinventory behaviour

/pki inv savedPlayers [add / remove]

Set the custom droprate formula

/pki inv invExpression set [invExpression]

Experience Droprate

There's currently 2 variables that change how XP is dropped:

  • Loss percentage (How much experience is lost)
  • Drop percentage (How much of that experience is dropped)

/pki xp droprate [drop / loss]

There's also 2 "modes" in which these variables can operate.

  • Based on levels
  • Based on experience points

Levels take increasingly more experience to get, which makes that mode increasingly more punishing when you're on a higher level.

/pki xp mode [vanilla / static-level / static-points / custom-level / custom-points]


License

Project description from Modrinth.

Pick your setup

Partial Keepinventory by Minecraft version and loader

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

4 available setups

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

Recent files

Partial Keepinventory versions and loaders

4 of 6 releases match
Clear filters

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