Pet Vault
从一个地方存储、召唤并管理你的已驯服宠物和坐骑。
支持任何玩家拥有的生物:狼、猫、鹦鹉、马、悦灵等。
Modrinth | CurseForge
功能
- 每位玩家最多可存储 10 只已驯服的伙伴(可配置至 1024):狼、猫、鹦鹉、马、驴、骡、骆驼、悦灵以及任何其他玩家拥有的生物。
- 右键点击你拥有的已驯服伙伴以将其注册到保险库中。
- 右键点击已召唤的伙伴以永久将其从保险库中释放(动物会留在世界中),或者通过径向菜单释放任何伙伴。
- 打开径向菜单查看所有已存储的伙伴及其名称、生命值和状态:已召唤、已存储、死亡或丢失(琥珀色 — 请参阅常见问题解答)。
- 伙伴和升级绑定于你本人,而非锁链坠饰 — 丢失或更换锁链坠饰不会影响你存储的伙伴。
- 解锁被动治疗功能的生命水晶 — 已存储的宠物会缓慢恢复生命值。
- 解锁宠物复活功能的心灵水晶 — 如果已召唤的宠物死亡,它将在 5 分钟后以满生命值恢复。
- 在你离线期间,治疗和复活计时器也会继续累积。
- Curios / Trinkets 集成 — 在支持的模组中,将锁链坠饰装备到专用的装备槽位中(详见模组兼容性部分)。
- 开箱即用,兼容任何基于原版
TamableAnimal/OwnableEntity 构建的模组的宠物或坐骑 — 无需额外设置。
要求
模组兼容性
可选的装备槽位模组 — 没有它们时,锁链坠饰仍可从你的物品栏中使用,但专用槽位可以腾出空间:
| Mod |
26.1.x |
|
|
1.21.1 |
|
|
1.20.1 |
|
|
NeoForge |
Forge |
Fabric |
NeoForge |
Forge |
Fabric |
Forge |
Fabric |
| Curios |
✅ |
⏳ |
— |
✅ |
🛠️ |
— |
✅ |
— |
| Trinkets |
— |
— |
✅ |
— |
— |
✅ |
— |
✅ |
- ✅ 支持 — 已实现,当前可用
- 🛠️ 计划中 — 其他模组支持此加载器;我尚未实现
- ⏳ 受阻 — 其他模组尚无此加载器/版本的构建
- — 不适用 — 其他模组不会支持此选项
"Trinkets" 在不同版本中指代不同的模组:在 1.20.1 和 1.21.1 上是原始的 dev.emi/trinkets,而在 26.1.x 上是 eu.pb4/trinkets(“Trinkets Updated”)— 这是一个从头开始的重写版,拥有不同的 API,因为原始版本不再维护该版本。
1.20.1 没有 NeoForge 列 — 我不支持该版本。
来自其他模组的宠物和坐骑: 对于任何基于原版 TamableAnimal/OwnableEntity 构建的内容均可自动工作。自动骑乘(Shift+左键点击以召唤并骑乘)是按实体类型选择的 — 将实体添加到 pet_vault:auto_rideable 标签或 extraRideableEntities 配置选项中,即可为其启用 Shift+点击骑乘。完全没有所有权概念的实体(例如铁傀儡、快乐恶魂)默认不可存储 — 请参阅下方配置部分,通过 storableEntities 配置选项或 pet_vault:storable 标签选择将其纳入存储。
入门指南
- 制作或获取守护者坠饰 (Keeper's Locket) 并将其保留在你的物品栏中。
- 右键点击你拥有的任何已驯服伙伴以将其注册到保险库中。
- 按 V(默认)打开径向菜单,并通过点击其扇区来召唤或存储宠物。
- 左键点击扇区以召唤伙伴。再次左键点击以将其存储。
物品
守护者坠饰 (Keeper's Locket)
核心物品。将其保留在物品栏中以访问径向菜单。右键点击你拥有的已驯服伙伴以将其注册到保险库中。右键点击已召唤的伙伴以永久将其从保险库中释放(动物会留在世界中)。
径向菜单控制:
- 左键点击 — 召唤或存储
- Shift+左键点击 — 召唤并立即骑乘(仅限可骑乘的伙伴)
- Ctrl+左键点击 — 强制在你面前直接召唤
- 右键点击 — 切换保镖模式;当你受到伤害时宠物会自动召唤(显示为蓝色线条)
- Shift+右键点击 — 选择一个扇区(高亮显示为黄色);再次 Shift+右键点击另一个扇区以交换它们的顺序;再次点击同一个扇区以取消选择
- Ctrl+右键点击 — 标记一个伙伴以供释放(扇区变为红色)。然后左键点击它以确认,Ctrl+左键点击即使没有空间也能在你面前释放它,或右键点击以取消。已存储的伙伴首先会被放置在你身边;已召唤的伙伴则停留在原地。被释放的伙伴永远不会被杀死。
- 鼠标滚轮或圆圈下方的箭头 — 更改页面(仅当你至少有一页宠物时出现)
生命水晶 (Life Crystal)
使用金苹果周围环绕四个绿宝石(无形状限制)制作。消耗它将永久解锁所有已存储宠物的被动治疗 — 它们在存储期间每 3 秒恢复最大生命值的 1%。
心灵水晶 (Soul Crystal)
使用不死图腾周围环绕四个绿宝石(无形状限制)制作。消耗它将永久解锁宠物复活功能 — 如果已召唤的宠物死亡,它不会丢失,而是进入 5 分钟的恢复期并以满生命值返回。这也适用于你在离线期间宠物死亡的情况:当你重新登录时,恢复效果将生效。
调试物品 (仅限创造模式)
可在 Pet Vault 创造模式标签页中获得。
- 金骨头 (Golden Bone) — 右键点击任何未驯服的可驯服生物,立即将其驯服为你所有
- 守护者放大镜 (Keeper's Magnifier) — 检查附近生物的保险库数据和实体状态
配置
首次启动时会在 config/pet_vault-common.toml 生成一个配置文件。所有设置需在重启或重载世界后生效。
| 设置项 |
默认值 |
描述 |
maxPets |
10 |
每位玩家最多存储的宠物数量(1–1024) |
maxSummonedPets |
-1 (无限制) |
同时召唤的最大宠物数量 |
enableLifeCrystal |
true |
如果为 false,生命水晶将无效且其合成配方将被移除 |
enableSoulCrystal |
true |
如果为 false,灵魂水晶将无效且其合成配方将被移除 |
healingRatePercent |
1.0 |
每次治疗 tick 恢复最大生命值的百分比 |
healIntervalTicks |
60 |
每次治疗 tick 之间的间隔 tick 数(60 = 每 3 秒一次) |
reviveTimerSeconds |
300 |
宠物死亡后等待多久才能再次被召唤(秒) |
deathDrops |
NONE |
宠物死亡且即将复活时的掉落物:NONE = 不掉落任何物品,宠物保留其装备;ALL = 原版掉落物,宠物将以原版掉落物状态复活。仅当拥有者持有灵魂水晶时生效;否则所有物品都会掉落 |
excludedEntities |
[] |
无法存储的生物类型,例如 ["minecraft:wolf"] |
extraRideableEntities |
[] |
可以通过按住 Shift 左键自动骑乘的生物类型,例如 ["minecraft:pig"] |
storableEntities |
[] |
没有原版拥有者但仍可存储的生物类型,例如 ["minecraft:iron_golem"] |
allowUnequippedLocket |
false |
如果为 true,可以从背包的任何位置打开环形菜单,无需将护符放置在 Curios/Trinkets 饰品槽中 |
环形菜单页面(客户端设置): petsPerPage 是每位玩家的独立设置,永远不会发送给服务器,因此每位玩家可以选择自己的布局。当服务器允许的宠物数量超过此值时,环形菜单会增加页面:滚动鼠标滚轮,或点击圆圈下方的箭头(例如 2/8)。
| 设置项 |
默认值 |
描述 |
petsPerPage |
10 |
每页的环形扇区数量。-1 关闭分页(所有槽位显示在一页上)。不建议超过 16:扇区会变得太小,名称和文本将无法容纳。 |
hideEmpty |
PAGES |
隐藏环形菜单中空余部分的方式。OFF 显示服务器允许的所有槽位;PAGES 隐藏不包含宠物的后续页面;SLICES 仅绘制包含宠物的扇区(至少一个),并隐藏空页面。你的容量仍会显示在圆圈上方(以及护符的工具提示中)的 Stored: x/y。 |
文件:config/pet_vault-client.toml(NeoForge, Forge)或 config/pet_vault_client.json(Fabric)。在 NeoForge 上,你还可以从模组列表中的游戏内编辑它。
允许特定生物: 一些生物在原版中完全没有所有权概念(例如铁傀儡、快乐的恶魂)。将实体 ID 添加到 storableEntities 配置选项,或将实体类型添加到 pet_vault:storable 数据包标签——任选其一即可将其纳入存储。由于没有拥有者需要检查,它们按先到先得的顺序存储,但召唤其中一个会将它标记为你的,这样在它被召唤期间其他人无法重新存储它。
通过数据包阻止特定生物: 将实体类型添加到 pet_vault:excluded 标签,以便你的模组可以自带排除项而无需触碰配置文件。
通过数据包允许更多自动骑乘生物: 将实体类型添加到 pet_vault:auto_rideable 标签,以便你的模组可以自带自动骑乘坐骑而无需触碰配置文件。
命令
| 命令 |
权限 |
功能 |
/petvault list [all|summoned|stored|dead|lost] |
所有人 |
显示你自己的保险库:每个同伴的状态、最后已知位置和 ID |
/petvault list <filter> <player> |
操作员 |
显示另一位玩家的保险库 |
/petvault restore <player> <id> |
操作员 |
用最后一次保存的副本替换丢失的同伴 |
点击丢失同伴的 ID 以复制它,或者作为操作员,填写恢复命令。
常见问题
我需要把守护者护符放在背包里吗?
是的,为了打开环形菜单。如果安装了 Curios/Trinkets 构建,护符必须装备在其饰品槽中——如果你希望无论何时都能从背包中打开它,请启用 allowUnequippedLocket 配置选项。丢失护符不会删除你存储的宠物——它们已保存到玩家数据中,当你获得新护符时它们仍然在那里。
离线时治疗和复活计时器是否有效?
是的——当你重新登录时,模组会计算经过的时间并相应地应用治疗和复活计时器。
其他玩家可以通过捡起我的护符来偷走我的宠物吗?
不会。宠物与你绑定——捡起你的护符无法访问你的宠物。
如果我尝试存储一个区块已卸载的宠物会发生什么?
Minecraft 只会在玩家附近加载实体,所以你可能把一个宠物留在了未加载的区块中。模组会记住每个被召唤的宠物在区块卸载时的位置,即使当时你处于离线状态。当你存储它时,模组会加载该区块,等待最多约 10 秒让宠物出现,存储它,然后让区块再次卸载。在此过程中你会看到“Recalling...”(召回中...)。
如果宠物不在那里,它会被标记为丢失。它永远不会重复出现:见下文。
我的宠物“丢失”了。现在怎么办?
当你在尝试存储宠物时,模组无法在预期位置找到它,且没有该宠物死亡的记录,此时该宠物会被标记为丢失。这种情况通常发生在宠物在未死亡的情况下离开世界时,例如:
- 它被转化成了其他生物。 被闪电击中的猪会变成僵尸猪灵,这是一种保险箱不认识的新的生物。
- 其他模组或工具移除了它。 世界编辑器(如 WorldEdit)、用于清除生物以减少延迟的模组,或将生物拾取为物品的模组。
- 服务器崩溃了。
你可以采取以下措施:
- 再次尝试存储。 如果它后来出现了(例如另一个玩家加载了它的区块),它会正常存储。
- 请求管理员恢复它。 运行
/petvault list lost,点击宠物的 ID 进行复制,并将其发送给管理员。他们可以通过 /petvault restore 将其从上次保存状态中恢复。
- 释放它 如果它已经永久消失,可以从径向菜单中释放它。这将释放其保险箱槽位。
一只丢失的宠物会保留其保险箱槽位,并且如果服务器设置了召唤上限,它会计入该限制。Store-all 会跳过它,因此每次按下时不会搜索它。
如果我的宠物在我离线时死亡怎么办?
处理方式与你在线时完全相同。如果有灵魂水晶,它会开始恢复期;如果没有灵魂水晶,它就彻底消失了。当你重新登录时会看到一条消息。
为什么我的宠物在 deathDrops 设置为 NONE 的情况下掉落了装备?
在你消耗灵魂水晶后,召回你召唤的宠物并再次召唤它们。宠物只有在被召唤时,或者你在它们处于已加载区块时消耗灵魂水晶时,才会得知水晶的存在。一个罕见的边缘情况是:
召唤宠物 → 让它留在未加载的区块中 → 消耗灵魂水晶 → 离线 → 另一个玩家发现并杀死该宠物 → 他们获得其战利品
免责声明
本模组按“原样”提供,不提供任何形式的担保。
使用本模组即表示您同意作者不对因使用本模组而可能产生的任何损害、数据丢失、滥用或未预见的后果承担责任。
本项目与 Mojang、Microsoft 或 CurseForge 均无关联。
Pet Vault
Store, summon, and manage your tamed pets and mounts from one place.
Supports any player-owned creature: wolves, cats, parrots, horses, allays, and more.
Modrinth | CurseForge
Features
- Store up to 10 tamed companions per player (configurable up to 1024): wolves, cats, parrots, horses, donkeys, mules, llamas, allays, and any other player-owned mob.
- Right-click your tamed companion to register it to the vault.
- Right-click a summoned companion to permanently release it from the vault (the animal stays in the world), or release any companion from the radial menu.
- Open the radial menu to see all stored companions with their names, health, and status: summoned, stored, dead, or lost (amber — see FAQ).
- Companions and upgrades are bound to you, not the locket — losing or replacing the locket never affects your stored companions.
- Unlock passive healing with a Life Crystal — stored pets slowly regenerate health.
- Unlock pet revive with a Soul Crystal — if a summoned pet dies it recovers after 5 minutes at full health.
- Healing and revive timers catch up while you were offline.
- Curios / Trinkets integration — equip the locket in a dedicated equipment slot where supported (see Mod Compatibility below).
- Works out of the box with any mod's pets or mounts built on vanilla's
TamableAnimal/OwnableEntity — no extra setup needed.
Requirements
Mod Compatibility
Optional equipment-slot mods — the locket works from your inventory without them, but a dedicated slot frees the space up:
| Mod |
26.1.x |
|
|
1.21.1 |
|
|
1.20.1 |
|
|
NeoForge |
Forge |
Fabric |
NeoForge |
Forge |
Fabric |
Forge |
Fabric |
| Curios |
✅ |
⏳ |
— |
✅ |
🛠️ |
— |
✅ |
— |
| Trinkets |
— |
— |
✅ |
— |
— |
✅ |
— |
✅ |
- ✅ Supported — implemented, works today
- 🛠️ Planned — other mod supports this loader; not yet implemented by me
- ⏳ Blocked — other mod has no build for this loader/version yet
- — Not applicable — other mod won't support this
"Trinkets" means different mods depending on version: the original dev.emi/trinkets on 1.20.1 and 1.21.1, but eu.pb4/trinkets ("Trinkets Updated") on 26.1.x — a from-scratch rewrite with a different API, since the original isn't maintained for that version.
1.20.1 has no NeoForge column — I don't support that version.
Pets and mounts from other mods: works automatically for anything built on vanilla's TamableAnimal/OwnableEntity. Auto-riding (shift-left-click to summon and mount) is opt-in per entity type — add the entity to the pet_vault:auto_rideable tag or the extraRideableEntities config option to enable shift-click-mounting for it. Entities with no ownership concept at all (e.g. iron golems, happy ghasts) aren't storable by default — see Configuration below to opt one in via the storableEntities config option or the pet_vault:storable tag.
Getting Started
- Craft or obtain the Keeper's Locket and keep it in your inventory.
- Right-click any tamed companion you own to register it to the vault.
- Press V (default) to open the radial menu and summon or store pets by clicking their slice.
- Left-click on a slice to summon a companion. Left-click again, to store it.
Items
Keeper's Locket
The core item. Keep it in your inventory to access the radial menu. Right-click a tamed companion you own to register it to the vault. Right-click a summoned companion to permanently release it from the vault (the animal stays in the world).
Radial menu controls:
- Left-click — summon or store
- Shift+left-click — summon and immediately mount (rideable companions only)
- Ctrl+left-click — force-summon directly in front of you
- Right-click — toggle bodyguard mode; the pet auto-summons when you take damage (shown with a blue line)
- Shift+right-click — select a slice (highlighted yellow); shift+right-click a second slice to swap their order; click the same slice again to deselect
- Ctrl+right-click — mark a companion for release (slice turns red). Then left-click it to confirm, Ctrl+left-click to release it in front of you even without space, or right-click to cancel. A stored companion is placed next to you first; a summoned one stays where it is. Released companions are never killed.
- Mouse wheel or the arrows under the circle — change page (only appears when you have at least 1 page of pets)
Life Crystal
Craft with a golden apple surrounded by four emeralds (shapeless). Consuming it permanently unlocks passive healing for all your stored pets — they regenerate 1% of max health every 3 seconds while stored.
Soul Crystal
Craft with a totem of undying surrounded by four emeralds (shapeless). Consuming it permanently unlocks pet revive — if a summoned pet dies, instead of being lost it enters a 5-minute recovery period and returns at full health. This also applies if the pet dies while you're offline: the recovery is applied when you log back in.
Debug Items (creative only)
Available in the Pet Vault creative tab.
- Golden Bone — right-click any untamed tamable creature to instantly tame it to yourself
- Keeper's Magnifier — inspect vault data and entity state for nearby creatures
Configuration
A config file is generated at config/pet_vault-common.toml on first launch. All settings take effect after restarting or reloading the world.
| Setting |
Default |
Description |
maxPets |
10 |
Maximum pets stored per player (1–1024) |
maxSummonedPets |
-1 (unlimited) |
Maximum pets summoned at once |
enableLifeCrystal |
true |
If false, Life Crystal does nothing and its recipe is removed |
enableSoulCrystal |
true |
If false, Soul Crystal does nothing and its recipe is removed |
healingRatePercent |
1.0 |
% of max health healed per heal tick |
healIntervalTicks |
60 |
Ticks between each heal tick (60 = every 3 seconds) |
reviveTimerSeconds |
300 |
Seconds a dead pet waits before it can be summoned again |
deathDrops |
NONE |
What drops when a pet dies and will be revived: NONE = nothing drops and the pet keeps its gear; ALL = vanilla drops, and the pet revives with whatever vanilla left on it. Only applies if the owner has the Soul Crystal; otherwise everything drops |
excludedEntities |
[] |
Entity types that cannot be stored, e.g. ["minecraft:wolf"] |
extraRideableEntities |
[] |
Entity types that can be auto-ridden via shift-left-click, e.g. ["minecraft:pig"] |
storableEntities |
[] |
Entity types with no vanilla owner that can still be stored, e.g. ["minecraft:iron_golem"] |
allowUnequippedLocket |
false |
If true, the radial menu can be opened from anywhere in your inventory, without needing the locket in a Curios/Trinkets accessory slot |
Radial menu pages (client setting): petsPerPage is a per-player setting and is never sent to the server, so each player chooses their own layout. When the server allows more pets than this, the radial menu gains pages: scroll the mouse wheel, or click the arrows under the circle (e.g. 2/8).
| Setting |
Default |
Description |
petsPerPage |
10 |
Radial slices per page. -1 turns pagination off (all slots on one page). Going above 16 is not recommended: the slices get small, and names and text won't fit. |
hideEmpty |
PAGES |
How much of the empty part of the radial to hide. OFF shows every slot the server allows; PAGES hides trailing pages that hold no pet; SLICES draws only the slices that hold a pet (at least one) and also hides empty pages. Your capacity stays visible as Stored: x/y above the circle (and on the locket tooltip). |
File: config/pet_vault-client.toml (NeoForge, Forge) or config/pet_vault_client.json (Fabric). On NeoForge you can also edit it in-game from the mod list.
Allowing specific mobs: some entities have no ownership concept at all in vanilla (e.g. iron golems, happy ghasts). Add entity IDs to the storableEntities config option, or entity types to the pet_vault:storable data-pack tag — either one opts them into storage. They're stored first-come, first-served since there's no owner to check, but summoning one stamps it as yours so nobody else can re-store it while it's out.
Blocking specific mobs via data pack: add entity types to the pet_vault:excluded tag so your mod can ship its own exclusions without touching config.
Allowing more auto-rideable mobs via data pack: add entity types to the pet_vault:auto_rideable tag so your mod can ship its own auto-rideable mounts without touching config.
Commands
| Command |
Who |
What it does |
/petvault list [all|summoned|stored|dead|lost] |
Everyone |
Shows your own vault: each companion's state, last known position, and id |
/petvault list <filter> <player> |
Operators |
Shows another player's vault |
/petvault restore <player> <id> |
Operators |
Replaces a lost companion with a copy from its last save |
Click a lost companion's id to copy it, or, as an operator, to fill in the restore command.
FAQ
Do I need to keep the Keeper's Locket in my inventory?
Yes, to open the radial menu. If a Curios/Trinkets build is installed, the locket must be equipped in its accessory slot instead — enable the allowUnequippedLocket config option if you'd rather open it from the inventory regardless. Losing the locket does not delete your stored pets — they are saved to your player data and will still be there when you get a new locket.
Does healing or the revive timer work while I'm offline?
Yes — when you log back in, the mod calculates how much time passed and applies healing and revive timers accordingly.
Can another player steal my pets by picking up my locket?
No. Pets are bound to you specifically — picking up your locket gives no access to your pets.
What happens if I try to store a pet whose chunk has unloaded?
Minecraft only keeps entities loaded near players, so a pet you left behind may be in an unloaded chunk. The mod remembers where each summoned pet was when its chunk unloaded, even if you were offline at the time. When you store it, the mod loads just that chunk, waits up to ~10 seconds for the pet, stores it, then lets the chunk unload again. You'll see "Recalling..." while this happens.
If the pet isn't there, it's marked as lost. It's never duplicated: see below.
My pet is "lost". Now what?
A pet is marked lost when you try to store it and the mod can't find it where it should be, but it also has no record of the pet dying. This happens when a pet leaves the world without dying, for example:
- It was transformed into another mob. A pig struck by lightning turns into a zombified piglin, which is a new mob the vault doesn't know.
- Another mod or tool removed it. World editors (e.g. WorldEdit), mods that clear mobs to reduce lag, or mods that pick mobs up into an item.
- The server crashed.
What you can do:
- Try storing it again. If it turns up later (e.g. another player loads its chunk), it's stored normally.
- Ask an operator to restore it. Run
/petvault list lost, click the pet's id to copy it, and send it to them. They can bring it back from its last save with /petvault restore.
- Release it from the radial menu if it's gone for good. This frees its vault slot.
A lost pet keeps its vault slot, and counts toward the summon limit if your server sets one. Store-all skips it, so it isn't searched for on every press.
What if my pet dies while I'm offline?
It's handled exactly as if you were online. With a Soul Crystal it starts its recovery period; without one it's gone. You'll see a message when you log back in.
Why did my pet drop its gear with deathDrops set to NONE?
Right after you consume a Soul Crystal, recall your summoned pets and summon them again. Pets only learn about the crystal when they are summoned, or when you consume it while they are in a loaded chunk. The rare edge case where one is missed:
summon a pet → leave it in an unloaded chunk → consume the Soul Crystal → go offline → another player finds the pet and kills it → they get its loot
Disclaimer
This mod is provided "as-is" without any warranty of any kind.
By using this mod, you agree that the author(s) are not responsible for any damages, data loss, misuse, or unintended consequences that may arise from its use.
This project is not affiliated with Mojang, Microsoft, or CurseForge.
评论 0
登录后参与评分
还没有评论,来抢沙发吧