跳到正文

ChestShare

作者:Calamech

Per-player loot in every world-generated chest, 100% server-side. Can even restore chests that were looted before you installed it.

收藏

介绍

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

ChestShare

Summary

Per-player loot in every world-generated chest — 100% server-side. Can even restore chests that were looted before you installed it.

Description


Every player gets the dungeon chest. Not just the first one.

On a survival server, the first player to find a structure empties it. Everyone after them explores a looted world. ChestShare gives each player their own instance of every world-generated container — same seed, same loot, nobody left out.

And it’s 100% server-side: drop one jar in mods/, done. No client install, works with vanilla clients, launcher-locked modpack players, and cracked-open modpacks alike.

What it does

  • Per-player loot instances — chests, trapped chests, barrels, shulkers, dispensers, chest minecarts, and modded containers built on vanilla mechanics. Two players opening the same dungeon chest see the exact same items, each in their own copy.
  • Deposit friendly — players can take and stash items in their instance; everything persists with the world.
  • Mod-generated structures included — containers are captured at chunk generation, whether they use a loot table or were pre-filled with custom modded items (full NBT).
  • No exploits — hoppers and pipes can’t touch shared containers; breaking one drops only the breaker’s own instance; player-placed chests keep vanilla behavior, always.
  • Double chests, done right — combined 54-slot screen, each half tracked separately.

Installed the mod too late? We did too.

ChestShare was born on a live Cobblemon (COBBLEVERSE) server where players had already explored and emptied chests across the whole map. Vanilla deletes a chest’s loot table the moment it’s opened — that information is gone from the world forever.

But world generation is deterministic. So ChestShare ships a recovery workflow:

  1. Copy your server setup (same mods, same seed), delete the world copy.
  2. Pre-generate the explored area on that mirror (Chunky works great) — ChestShare captures every container as it generates.
  3. /chestshare export recovery on the mirror.
  4. /chestshare import recovery on your real server: every chest still standing — including the ones already looted — becomes a shared container with its original loot.

The import runs spread across server ticks (no freeze, no watchdog kill) and skips non-empty containers by default so it never eats player storage. On our server: 332 containers exported from the mirror, 241 restored in one command, zero downtime beyond a restart.

Commands (op level 2)

| Command | Effect |
|—|—|
| /chestshare convert <pos> <loot_table> | Convert one container (e.g. a chest looted pre-mod) into a shared container |
| /chestshare reset <pos> | Wipe player instances — loot regenerates for everyone |
| /chestshare export <file> | Export all captured containers to a file |
| /chestshare import <file> [force] | Apply an export to this world (recovery) |

Good to know

  • Fabric, Minecraft 1.21.1, Java 21. Requires Fabric API. Server-side only (also works in singleplayer/LAN).
  • Chunks generated before install: unopened containers still convert automatically on first open (their loot table is intact); already-looted ones need the recovery workflow above.
  • Fully custom container implementations (not based on vanilla loot mechanics) aren’t covered.
  • Cosmetic: no chest lid animation on shared containers (server-side trade-off).

常见问题

ChestShare 支持哪些 Minecraft 版本?

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

ChestShare 怎么安装?

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

评论

登录后评论和评分

Calamech 的其他作品

查看全部 →