受够了玩家每五分钟就因负重过高而陷入困境?DynamicBackpacks 引入了完整的背包系统,包含六个可升级的等级、两种不同的使用方式,且毫无繁琐之处。所有数据均保存至 SQLite 数据库,因此重启后也不会丢失任何物品。
工作原理
这里有两类背包,你可以同时运行两者(或者只启用其中一种,甚至都不启用,具体由配置文件决定)。
物品背包是实体的物品。制作一个,放入快捷栏,右键点击即可打开一个箱子 GUI。背包在后台绑定了一个唯一的 ID,因此即使你意外丢失了该物品,管理员也可以通过 /dbp restore <uuid> <player> 命令将其找回,所有物品都会恢复原状。你也可以直接在背包位于任意库存槽位时右键点击它,不一定非要拿在手里。
指令背包更像是一个私有的储物柜。输入 /bp 1 会打开你的第 1 个槽位,/bp 2 打开第 2 个槽位,以此类推,最多支持 10 个槽位。不需要物品,也不会丢失任何东西。这对于捐赠者权限或为玩家提供可靠的副手存储选项非常有用。
六个等级
每个等级增加一行存储空间。从小容量开始逐步提升,每个升级配方的中心材料都需要前一个等级的背包,从而形成合理的进阶流程,而不是简单的平面合成网格。
| 等级 |
存储空间 |
主要材料 |
| 1 |
9 格 |
皮革 + 箱子 |
| 2 |
18 格 |
铁锭 + T1 背包 |
| 3 |
27 格 |
金锭 + T2 背包 |
| 4 |
36 格 |
钻石 + T3 背包 |
| 5 |
45 格 |
绿宝石 + T4 背包 |
| 6 |
54 格 |
下界合金锭 + T5 背包 |
当你制作升级配方时,你的物品会自动转移过来。你不会丢失任何东西。
管理员相关
/dbp give <player> <tier> 给予玩家一个物品背包
/dbp restore <uuid> <player> 恢复丢失的背包及其中的物品
/dbp reload 无需重启服务器即可重新加载配置
/bp view <player> <slot> 查看并编辑任意玩家的指令背包
Reload 是完全重载,它会关闭所有已打开的背包,重新读取两个配置文件,并实时重新注册所有配方。
一些值得注意的事项
你可以在世界各处的战利品箱中找到背包(地牢、堡垒遗迹、末地城、试炼密室等),但此功能默认关闭。在 config.yml 中设置 loot.enabled: true,然后在 backpacks.yml 中根据需要调整各个等级的概率。高等级的默认概率极低是出于故意设计。
默认情况下,背包内禁止放置潜影盒。你可以使用 inventory.allow-shulker-boxes: true 允许它们存在。
玩家不能将背包当作头盔佩戴。也不能将背包放入另一个背包中。同一个背包不能同时被两人打开。这些限制不可配置,因为它们是为了防止复制漏洞的安全措施。
可以在 backpacks.yml 中使用 enabled: false 完全禁用单个等级。修改后需执行 /dbp reload 生效。
权限(快速参考)
dynamicbackpacks.use.item.tier.<1-6> 打开对应等级的物品背包
dynamicbackpacks.craft.tier.<1-6> 合成对应等级的背包
dynamicbackpacks.command.bp.use 使用 /bp 指令
dynamicbackpacks.command.bp.<1-10> 访问对应的指令背包槽位
dynamicbackpacks.admin 所有管理员命令
请在 Discord 上报告任何错误。
Tired of players being overburdened every five minutes? DynamicBackpacks adds a full backpack system with six upgradeable tiers, two different ways to use them, and zero jank. Everything saves to SQLite so no one loses their stuff on a restart.
How it works
There are two types of backpacks and you can run both at the same time (or just one, or neither, it's all in the config).
Item backpacks are physical items. Craft one, throw it in your hotbar, right-click it and a chest GUI opens. The backpack is tied to a unique ID behind the scenes so even if you somehow lose the item, an admin can restore it with /dbp restore <uuid> <player> and all your items come back. You can also just right-click it while it's sitting in any inventory slot, doesn't have to be in your hand.
Command backpacks are more like private storage lockers. Run /bp 1 and it opens your slot 1, /bp 2 opens slot 2, and so on up to 10 slots. No item required, nothing to lose. These are great for donor ranks or just giving players a reliable off-hand storage option.
The six tiers
Each tier is one extra row of storage. You start small and work your way up, and every upgrade recipe requires the previous tier backpack as the center ingredient, so it's a proper progression, not just a flat crafting grid.
| Tier |
Storage |
Main material |
| 1 |
9 slots |
Leather + Chest |
| 2 |
18 slots |
Iron Ingots + T1 Backpack |
| 3 |
27 slots |
Gold Ingots + T2 Backpack |
| 4 |
36 slots |
Diamonds + T3 Backpack |
| 5 |
45 slots |
Emeralds + T4 Backpack |
| 6 |
54 slots |
Netherite Ingots + T5 Backpack |
When you craft an upgrade, your items automatically carry over. You don't lose anything.
Admin stuff
/dbp give <player> <tier> give a player an item backpack
/dbp restore <uuid> <player> restore a lost backpack with its contents intact
/dbp reload reload configs without restarting
/bp view <player> <slot> open and edit any player's command backpack
Reload is a full reload, it closes any open backpacks, rereads both config files, and reregisters all recipes live.
A few things worth knowing
You can find backpacks in loot chests across the world (dungeons, bastions, end city, trial chambers, etc.) but this is off by default. Toggle loot.enabled: true in config.yml and then tune the per-tier chances in backpacks.yml however you like. Higher tiers have very low default chances on purpose.
Shulker boxes inside backpacks are blocked by default. You can allow them with inventory.allow-shulker-boxes: true.
Players can't wear backpacks as helmets. They also can't put a backpack inside another backpack. The same backpack can't be opened by two people at once. These aren't configurable because they're anti-dupe measures.
Individual tiers can be fully disabled with enabled: false in backpacks.yml. Takes effect after /dbp reload.
Permissions (quick reference)
dynamicbackpacks.use.item.tier.<1-6> open item backpacks of that tier
dynamicbackpacks.craft.tier.<1-6> craft that tier
dynamicbackpacks.command.bp.use use the /bp command at all
dynamicbackpacks.command.bp.<1-10> access that command backpack slot
dynamicbackpacks.admin all admin commands
Report any bugs on the discord.
评论 0
登录后参与评分
还没有评论,来抢沙发吧