promotional bannermobile promotional banner

ChestShare+

Fork of ChestShare (by Calamech) with modded-container support, async import, and bugfixes.

ChestShare+

Summary

Per-player instanced loot for world-generated containers — 100% server-side.

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.


This is a fork of ChestShare by Calamech. All credit for the original concept, design, and implementation goes to Calamech. This fork adds:

  • Modded/reflective container support — Sophisticated Storage, CobbleFurnies, and Carved Wood etc. containers are captured and shared the same way vanilla chests, barrels, shulker boxes, and chest minecarts are.
  • Asynchronous, cancellable import — large imports no longer block the server. /chestshare import status and /chestshare import cancel let you monitor and stop a running import.
  • Passive world-gen safety — installing on an existing world never sweeps up a player's own already-placed modded storage; only genuinely freshly-generated chunks are eligible for modded-container auto-capture.

Commands (op level 2)

Command Effect
/chestshare convert <pos> <loot_table> Convert one container into a shared container with the given loot table
/chestshare reset <pos> Clear cached player rolls — loot regenerates for everyone next open
/chestshare export <file> Export all captured containers to a file
/chestshare import <file> [force] [parallel N] Apply an export to this world, in the background (recovery)
/chestshare import status Show progress of a running import (only visible while one is active)
/chestshare import cancel Cancel a running import (only visible while one is active)

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 vanilla containers still convert automatically on first open (their loot table is intact); already-looted ones need the export/import recovery workflow, which requires a second copy of the world (same seed, same mods) to pre-generate and capture the original loot from.
  • export only ever writes containers this mod has already registered — a chunk merely being loaded doesn't register anything by itself. A fresh chunk-generation event, or a player opening the container, does.
  • Container support covers: vanilla chests, barrels, shulker boxes, and chest minecarts; any modded block entity that implements vanilla's Container interface — this covers a lot of storage mods for free, since many decorative/simple storage mods (e.g. Carved Wood's chests and barrels, Cobblemon Guilded Chests) build directly on vanilla's own container implementation; and, by name, Sophisticated Storage and CobbleFurnies specifically, which don't implement Container and are supported via reflection instead. A mod whose storage is fully custom — neither Container-based nor one of those two named integrations — isn't covered, and would need its own dedicated support the way Sophisticated Storage and CobbleFurnies got.
  • Verified against the official COBBLEVERSE modpack's world-generated storage: Sophisticated Storage, Sophisticated Core, and CobbleFurnies are supported by name, and Carved Wood is covered generically via Container.

License

MIT — original work Copyright (c) 2026 Calamech. Source code.

The ChestShare+ Team

profile avatar
  • 1
    Projects
  • 13
    Downloads