跳到正文

KeepPercentOfInventory

作者:xireir

Keeps a set percentage of inventory after death.

收藏

介绍

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

Save Percent of Inventory

Save Percent of Inventory is a lightweight server-side Fabric mod that changes the vanilla death penalty. Instead of dropping all items on the ground or keeping everything with keepInventory, this mod keeps a customizable percentage of your items directly in your inventory upon respawning, while the rest are permanently destroyed.

No more tedious corpse runs or picking up scattered items!

✨ Features

  • Customizable Retention: Choose exactly what percentage of item slots stay in the player’s inventory after death.

  • No Item Drops: Unsaved items disappear permanently—they do not drop on the ground, so you don’t have to walk back to your death location.

  • Server-Side Only: Players do not need to install this mod on their game clients to join your server.

  • Randomized Selection: Slot preservation is randomized on every death based on your configured percentage.

⚙️ Configuration

Upon the first launch, the mod generates a configuration file located at:

config/percent_keep_inventory.json

JSON

<button class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" aria-label="Скачать код"></button><button class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" aria-label="Скопировать код"></button>
{
  "keepPercentage": 70
}
  • 100 — Keeps 100% of filled item slots (similar to keepInventory, but without dropping anything).

  • 70 (Default) — Keeps ~70% of item slots and destroys the remaining ~30%.

  • 0 — Destroys all items upon death.

🛠️ Requirements

  • Minecraft: 1.20.1

  • Loader: Fabric Loader

  • Dependency: Fabric API

📥 Installation

  1. Install Fabric Loader and Fabric API on your server.

  2. Drop the save-percent-of-inventory-1.0.0.jar into your server’s mods folder.

  3. Start the server, adjust the percentage in config/percent_keep_inventory.json if needed, and enjoy!

常见问题

KeepPercentOfInventory 支持哪些 Minecraft 版本?

KeepPercentOfInventory 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

KeepPercentOfInventory 怎么安装?

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

评论

登录后评论和评分