Partial Keepinventory

Quick rating

Partial Keepinventory

No reviews yet

Only drop a configured percentage of items or experience.

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
BSD 3-Clause "New" or "Revised" License
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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

Screenshots

Gallery

  • Experience droprate settings
    Experience droprate settings
  • Custom expression for inventory droprate
    Custom expression for inventory droprate
  • Inventory Settings screen
    Inventory Settings screen

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works