
你的物品,永远为你守候——无论你身处哪个世界。
Legacy Vault 为每位玩家提供一个存在于世界之外的个人储物空间。放置一个 vault 方块并打开它,你存入其中的任何物品都归你所有。切换到新世界或重新开始——你的 vault 依然在那里。Vault 数据存储在服务器上,因此你可以在该服务器上的任何世界中访问这些物品。
Vault 类型
Rustic Vault
个人 vault。只有你能打开它。配方中心使用 Chest 制作。
Classic Vault
同样是个人 vault,但外观不同。配方中心使用 Barrel 制作。
Community Vault
共享 vault,任何玩家(或白名单中的玩家)均可访问。非常适合用于服务器商店、捐赠箱或阵营存储。这里也提供了完整的扩展和搜索功能。
Vault 扩容
新玩家初始拥有1 行共 9 个格子。使用 Vault Upgrade 物品可解锁更多行,最多可达10 行(90 个格子)。
- 手持 Vault Upgrade 右键点击你的 vault 即可解锁下一行。
- 升级物品在使用后会被消耗(创造模式下除外)。
- 你的等级会在不同世界间保留——在一个世界中达到 5 级后,下一个世界中的 vault 将自动扩容。
- Vault Upgrades 可从冒险宝箱中掉落——包括地牢、矿井、要塞、神殿、林地府邸、末地城、下界堡垒、堡垒遗迹和远古城市。掉落率和数量均可配置。
服务器管理员可以更改起始大小、最大大小以及是否按世界重置等级进度。
Vault GUI 功能
- 滚动条——在一屏内滚动查看所有已解锁的行。
- 锁定格子指示器——未解锁的行会显示明显的 X 覆盖层,让你清楚知道未来能解锁什么。
- 搜索栏——输入内容以淡化不匹配的物品。物品位置保持不变,方便你了解各物品的具体位置。
- 排序按钮 (Az)——一键按字母顺序排序已解锁的行。锁定的行不受影响。
- 物品数量提示框——悬停在物品上时,如果其他格子中有同类物品,会显示“× N in vault”。
管理与服务器功能
所有命令均需 权限等级 2,且位于 /legacyvault 命令组下:
| 命令 |
功能说明 |
inspect <player> |
查看玩家的 vault 内容及格子使用情况 |
reload <player> |
从磁盘重新加载玩家的 vault 数据 |
clear <player> |
清除玩家 vault 中的所有物品(需确认) |
transfer <from> <to> |
将一个玩家 vault 中的所有物品转移到另一个玩家 vault |
locations <player> |
列出玩家所有已放置 vault 的坐标 |
locations clear <player> |
清除玩家的 vault 位置列表 |
count <targets> [value] |
显示或设置玩家的 vault 数量上限 |
spawn <pos> [targets] [type] [direction] |
在世界中生成一个 vault |
tier inspect <player> |
显示玩家当前等级及格子总数 |
tier set_tier <targets> <value> |
直接设置玩家等级 |
tier reset <targets> |
将玩家重置为初始等级 |
tier max <targets> |
将玩家设置为最高等级 |
encryption status |
显示 vault 加密状态是开启还是关闭 |
encryption on|off |
在不重启服务器的情况下切换加密开关 |
物品白名单与黑名单
使用 数据包物品标签 (datapack item tags) 控制哪些物品可以存入 vault:
legacyvault:vault_items_whitelist —— 仅允许这些物品
legacyvault:vault_items_blacklist —— 禁止这些物品
标签列表优先检查。基于配置的正则表达式模式仍作为后备机制生效。
默认被阻止(以防止绕过格子限制作弊):
- Iron Chests
- Sophisticated Backpacks, Sophisticated Storage
- Traveler's Backpack
- Treasure2 chests and containers
Vault 加密(可选)
在服务器配置文件中启用 encryptVaultData(或使用 /legacyvault encryption on),磁盘上的 vault 文件将被混淆,未经服务器密钥无法读取。这可以防止文件窃取和 UUID 伪造。随时安全切换——现有文件无论加密与否均可正常工作。
重要提示:请备份 config/legacyvault/legacyvault-secret.dat。如果丢失此文件,加密的 vault 将无法读取。
防崩溃保存
Vault 文件首先写入临时文件,然后进行替换——因此在保存过程中发生崩溃或断电不会导致数据损坏。
配置亮点
所有设置均位于 serverconfig/legacyvault-server.toml 中。
| 设置项 |
默认值 |
功能说明 |
startingVaultTier |
1 |
玩家初始拥有的行数量 |
maxVaultTier |
10 |
玩家可解锁的最大行数 |
enablePersonalVault |
true |
允许使用个人(Rustic/Classic)储物箱 |
enableCommunityVault |
true |
允许使用社区储物箱 |
resetTierPerWorld |
false |
在新世界中重置层级(物品仍会继承) |
encryptVaultData |
false |
对磁盘上的储物箱数据进行加密 |
vaultUpgradeLootEnabled |
true |
储物箱升级组件可从宝箱中掉落 |
vaultUpgradeLootChance |
0.02 |
每个符合条件的宝箱的掉落概率(2%) |
vaultUpgradeLootCount |
1 |
每次掉落的升级组件数量 |
依赖要求
模组兼容性
Legacy Vault 旨在与流行模组共存。以下存储类模组默认被禁止放置在储物箱内部(否则它们将绕过槽位限制):
- Iron Chests
- Sophisticated Backpacks / Sophisticated Storage
- Traveler's Backpack
- Treasure2
服务器管理员可以使用配置文件中的物品标签或正则表达式自定义此列表。

Your items, always waiting for you — no matter what world you're on.
Legacy Vault gives every player a personal inventory that lives outside the world. Place a vault block, open it, and anything you store stays yours. Switch to a new world or start over — your vault is still there. Vault data is stored on the server, so your items are available across any world on that server.
Vault Types
Rustic Vault
A personal vault. Only you can open it. Craft it with a Chest at the center of the recipe.
Classic Vault
Also a personal vault, with a different look. Craft it with a Barrel at the center.
Community Vault
A shared vault that any player (or any player on an allowlist) can access. Great for server shops, donation chests, or faction storage. The full expansion and search features are available here too.
Vault Expansion
New players start with 1 row of 9 slots. Use Vault Upgrade items to unlock more rows, up to 10 rows (90 slots).
- Right-click your vault while holding a Vault Upgrade to unlock the next row.
- Upgrades are consumed on use (unless you're in creative mode).
- Your tier carries over between worlds — reach tier 5 in one world and your expanded vault is waiting in the next.
- Vault Upgrades can drop from adventure chests — dungeons, mineshafts, strongholds, temples, woodland mansions, end city, nether fortress, bastion remnants, and ancient cities. The drop chance and count are configurable.
Server admins can change the starting size, the maximum size, and whether tier progress resets per-world.
Vault GUI Features
- Scrollbar — scroll through all your rows in one screen.
- Locked-slot indicator — rows you haven't unlocked yet show a clear X overlay so you can see what's coming.
- Search bar — type to dim items that don't match. Items stay in place so you can see where everything is.
- Sort button (Az) — sorts your unlocked rows alphabetically in one click. Locked rows are untouched.
- Item count tooltip — hover over an item and see "× N in vault" if you have more of the same thing in other slots.
Admin and Server Features
All commands require permission level 2 and live under /legacyvault:
| Command |
What it does |
inspect <player> |
View a player's vault contents and slot usage |
reload <player> |
Reload a player's vault from disk |
clear <player> |
Wipe all items from a player's vault (asks for confirmation) |
transfer <from> <to> |
Move everything from one player's vault to another |
locations <player> |
List the coordinates of all of a player's placed vaults |
locations clear <player> |
Clear a player's vault location list |
count <targets> [value] |
Show or set a player's vault count |
spawn <pos> [targets] [type] [direction] |
Place a vault in the world |
tier inspect <player> |
Show a player's current tier and slot count |
tier set_tier <targets> <value> |
Set a player's tier directly |
tier reset <targets> |
Reset a player to the starting tier |
tier max <targets> |
Set a player to the maximum tier |
encryption status |
Show whether vault encryption is on or off |
encryption on|off |
Toggle encryption without restarting the server |
Item Whitelist and Blacklist
Control what can go in vaults using datapack item tags:
legacyvault:vault_items_whitelist — only these items are allowed
legacyvault:vault_items_blacklist — these items are blocked
The tag lists are checked first. Config-based regex patterns still work as a fallback.
Blocked by default (to prevent cheating the slot limit):
- Iron Chests
- Sophisticated Backpacks, Sophisticated Storage
- Traveler's Backpack
- Treasure2 chests and containers
Vault Encryption (Optional)
Turn on encryptVaultData in the server config (or use /legacyvault encryption on) and vault files on disk are scrambled so no one can read them without the server's key. Protects against file theft and UUID spoofing. Safe to toggle at any time — existing files keep working either way.
Important: Back up config/legacyvault/legacyvault-secret.dat. If you lose this file, encrypted vaults cannot be read.
Crash-Safe Saves
Vault files are written to a temp file first, then swapped in — so a crash or power cut during a save can't corrupt your data.
Configuration Highlights
All settings live in serverconfig/legacyvault-server.toml.
| Setting |
Default |
What it does |
startingVaultTier |
1 |
How many rows players start with |
maxVaultTier |
10 |
Maximum rows a player can unlock |
enablePersonalVault |
true |
Allow personal (Rustic/Classic) vaults |
enableCommunityVault |
true |
Allow Community vaults |
resetTierPerWorld |
false |
Reset tier on each new world (items still carry over) |
encryptVaultData |
false |
Encrypt vault files on disk |
vaultUpgradeLootEnabled |
true |
Vault Upgrades can drop from chests |
vaultUpgradeLootChance |
0.02 |
Drop chance per eligible chest (2%) |
vaultUpgradeLootCount |
1 |
Upgrades per drop |
Requirements
Mod Compatibility
Legacy Vault is designed to coexist with popular mods. The following storage mods are blocked from being placed inside a vault by default (they would otherwise bypass the slot limit):
- Iron Chests
- Sophisticated Backpacks / Sophisticated Storage
- Traveler's Backpack
- Treasure2
Server admins can customize this list using item tags or regex patterns in the config.
评论 0
登录后参与评分
还没有评论,来抢沙发吧