CompressedChests
在同一个方块中存储比原版箱子更多的物品。 将任意箱子或木桶变为压缩式容器,每种物品都能容纳超大队列——正常存入,正常取出64个一组的标准堆叠,再也不用担心空间不足。
✨ 特性
- 超大容量 —— 每种物品的堆叠上限远超64:
- 单个箱子/木桶: 每种物品最多 512 个
- 双格箱子: 每种物品最多 1024 个
- 整洁的自定义 GUI —— 一个6行的界面显示每个已存储的物品,并在名称(例如
Cobblestone x512)和描述中显示实际数量,这样即使 Minecraft 无法在图标上绘制大数字,你也能始终看到真实计数。
- 自动排序 —— 存储的物品按材质家族分组(所有橡木物品在一起,所有铁制物品在一起,矿石 → 锭 → 块),而不是按存入顺序排列,因此 GUI 始终保持整洁。
- 自然的存入与取出 —— 点击或 Shift+点击物品即可存入;点击槽位可取出一组标准堆叠。无法装入的溢出部分会保留在你手中。
- 适用于箱子和木桶(包括陷阱箱)。
- 智能双格箱子处理:
- 在压缩箱子旁放置一个普通箱子 → 它会自动升级为双格(容量增加,内容物保留)。
- 破坏其中一半 → 它会降级为单格(内容物保留;仅超出单格上限的部分掉落)。
- 吸收现有物品 —— 转换一个已有物品的箱子时,其中的物品会被直接吸入压缩存储中。
- 防破坏保护 —— 防止那些会毁掉你存储的东西:
- ? 防爆(苦力怕、TNT 等)
- ? 防漏斗(自动化系统无法绕过虚拟库存)
- ⚠️ 破坏确认 —— 破坏一个装满的箱子时需要第二次点击,以免意外清空大量财富。
- 持久化 —— 关闭时、定时以及服务器关机时都会保存数据到磁盘,启动时重新加载。
- 兼容权限插件 —— 使用标准的 Bukkit 节点,开箱即用支持 LuckPerms 及类似插件。
? 使用方法
- 放置一个箱子或木桶(或双格箱子以获得更大上限)。
- 注视该方块并运行
/compchest —— 或者在铁砧中将下界之星重命名为 Chest Compressor,然后潜行 + 右键点击该方块。
- 右键点击容器以打开压缩存储 GUI。
- 存入: 点击 / Shift+点击物品进入 GUI。
取出: 点击已存储的物品以取出一组标准堆叠。
手持方块时潜行 + 右键会像往常一样放置方块,就像普通箱子一样——不会打开 GUI。
❗ 注意事项
- 存储仅按物品类型追踪 —— 附魔、自定义名称和耐久度不会被保留(附魔书会变成普通书)。不要存储你关心的装备或带有 NBT 数据的物品。
- 安装/更新请使用完全重启(而非
/reload)。
⌨️ 命令
| 命令 |
描述 |
/compchest |
将你注视的箱子/木桶转换为压缩式容器 |
/compchest info |
显示容器的统计信息(类型、物品种类、总物品数、容量) |
? 权限
| 节点 |
默认值 |
描述 |
compressedchests.use |
everyone |
打开并使用压缩容器,运行 /compchest info |
compressedchests.create |
op |
转换容器(通过命令或 Chest Compressor 物品) |
compressedchests.* |
op |
包含以上所有权限 |
LuckPerms 示例:
/lp group builder permission set compressedchests.create true
/lp group default permission set compressedchests.use true
⚙️ 配置文件 (config.yml)
# 每种物品类型的最大数量。
single-capacity-per-item: 512 # 单格箱子与木桶
double-capacity-per-item: 1024 # 双格箱子
# 一个容器能持有的不同物品类型的数量(GUI 有54个槽位)。
max-slots: 45
# 当容器被破坏时,将存储的物品掉落至地面。
drop-items-on-break: true
# 超过此总数的物品会触发“再次点击以确认”提示。
warn-threshold: 1000
# 用于潜行+右键快捷方式的物品名称(重命名后的下界之星)。
compressor-item-name: "Chest Compressor"
# 自动保存间隔(秒)(设为0则禁用;数据仍会在关闭/关机时保存)。
autosave-seconds: 300
? 更多来自我
插件开发只是我的副业——我的主要工作是构建 Web 应用和工具。欢迎来 pixltd.dev 看看我正在构建的项目。?
CompressedChests
Store far more than a vanilla chest in the same block. Turn any chest or
barrel into a compressed container that holds huge stacks of each item type —
deposit normally, withdraw normal 64-stacks, and never run out of space again.
✨ Features
- Massive storage — each item type stacks far beyond 64:
- Single chest / barrel: up to 512 per item type
- Double chest: up to 1024 per item type
- Clean custom GUI — a 6-row interface shows each stored item with its real
amount in the name (e.g.
Cobblestone x512) and lore, so you always see the
true count even though Minecraft can't draw big numbers on an icon.
- Auto-sorted — stored items are grouped by material family (all the oak
items together, all the iron items together, ore → ingot → block) instead of
deposit order, so the GUI always stays tidy.
- Deposit & withdraw naturally — click or shift-click items in to store them;
click a slot to take out a normal stack. Overflow that doesn't fit stays with you.
- Works on chests and barrels (including trapped chests).
- Smart double-chest handling:
- Add a chest beside a compressed one → it upgrades to a double automatically
(capacity grows, contents kept).
- Break one half → it downgrades to a single (contents preserved; only the
excess above the single cap drops out).
- Absorbs existing items — converting a chest that already has items pulls them
straight into compressed storage.
- Protected against the things that would wreck your storage:
- ? Explosion-proof (creepers, TNT, etc.)
- ? Hopper-proof (automation can't bypass the virtual inventory)
- ⚠️ Break confirmation — breaking a full chest asks for a second hit so you
don't dump a fortune by accident.
- Persistent — storage is saved to disk on close, on a timer, and on shutdown,
and reloaded on start.
- Permissions-plugin friendly — standard Bukkit nodes, works out of the box with
LuckPerms and similar.
? How to use
- Place a chest or barrel (or a double chest for the bigger cap).
- Look at it and run
/compchest — or sneak + right-click it with a
Nether Star renamed to Chest Compressor in an anvil.
- Right-click the container to open the compressed storage GUI.
- Deposit: click / shift-click items into the GUI.
Withdraw: click a stored item to take out a normal stack.
Sneak + right-click while holding a block places the block as usual, just like a
normal chest — it won't open the GUI.
❗ Good to know
- Storage tracks items by type only — enchantments, custom names, and
durability are not preserved (an enchanted book becomes a plain one). Don't
store gear or NBT items you care about.
- Use a full restart to install/update (not
/reload).
⌨️ Commands
| Command |
Description |
/compchest |
Convert the chest/barrel you're looking at into a compressed one |
/compchest info |
Show a container's stats (type, item types, total items, capacity) |
? Permissions
| Node |
Default |
Description |
compressedchests.use |
everyone |
Open & use compressed containers, run /compchest info |
compressedchests.create |
op |
Convert containers (command or Chest Compressor item) |
compressedchests.* |
op |
Everything above |
Example with LuckPerms:
/lp group builder permission set compressedchests.create true
/lp group default permission set compressedchests.use true
⚙️ Configuration (config.yml)
# Max amount of a single item type, per type.
single-capacity-per-item: 512 # single chests & barrels
double-capacity-per-item: 1024 # double chests
# How many distinct item types one container can hold (GUI is 54 slots).
max-slots: 45
# Drop stored items on the ground when a container is broken.
drop-items-on-break: true
# Total items above this trigger a "break again to confirm" prompt.
warn-threshold: 1000
# Item name (a renamed Nether Star) used for the shift-right-click shortcut.
compressor-item-name: "Chest Compressor"
# Auto-save interval in seconds (0 disables; data still saves on close/shutdown).
autosave-seconds: 300
? More from me
Plugins are a side thing for me — my main work is building web apps
tools. Come take a look at what I'm building over at
pixltd.dev. ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧