跳到正文

Selective Keep Inventory

作者:Kadddor

Per-player keep inventory for vanilla Minecraft. Give keep inventory to selected players only instead of the whole server.

收藏

截图

介绍

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

Selective Keep Inventory

Selective Keep Inventory is a lightweight vanilla datapack for Minecraft Java Edition that enables keep inventory for specific players only.

Instead of enabling keepInventory for the entire world, this pack lets you choose exactly which players keep their items and XP after death.

Features

  • Per-player keep inventory
  • Per-player XP retention
  • Fully server-side
  • Vanilla datapack, no plugin or mod required
  • Supports Minecraft Java Edition 1.20.2 to 1.21.11

How it works

Players with the keepinv tag keep their inventory and XP on death.

Players without the tag die normally and lose their inventory/XP as expected.

Commands

Enable for a player:
/tag <player> add keepinv

Disable for a player:
/tag <player> remove keepinv

Example:
/tag Steve add keepinv

Fabric:

Player Keep Inventory

Server-side Fabric mod for Minecraft 1.21.1 that enables keep-inventory only for selected players.

Command

/keepinventory <player|selector> <on|off|toggle|status>

Examples:

  • /keepinventory Steve on
  • /keepinventory @a[team=vip] on
  • /keepinventory Steve status

Installation

  1. Put the ZIP file into your world’s datapacks folder
  2. Run /reload
  3. Check with /datapack list

Notes

This is a vanilla datapack, so it does not add a custom root command like /keepinv on Steve.
Use the player tag system shown above.

常见问题

Selective Keep Inventory 支持哪些 Minecraft 版本?

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

Selective Keep Inventory 怎么安装?

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

评论

登录后评论和评分

Kadddor 的其他作品

查看全部 →