可制作的背包
此插件默认添加了一个具有 18 个格子的可制作 背包。 背包的大小可以进行更改。 客户端不需要安装任何模组。一切均由服务器管理。
合成
这是默认的合成配方:
您可以在 crafting.txt 文件中对其进行修改。
更新说明
如果您是此插件的新用户,您可以跳过本节。
配置变更
如果以下行尚未存在于您的 config.yml 文件中,您需要将其添加进去:
BackPackMaterial: LEATHER
DropBackpackContentOnDeath: true
如果您有自定义设置,可以通过将这些行复制到配置中来实现;或者通过删除旧配置文件以生成新的配置文件。
使用唯一 ID (UniqueId) 而非名称
在 Minecraft 新闻中可以读到: “我们已推送了一项支持更改玩家名称的更新,但在未来的某个日期之前,我们将不允许更改名称。”
这意味着插件开发者现在必须使用 UUID(即 UniqueId),因为玩家名称将不再固定。我更改了插件保存玩家背包的方式,从使用玩家名称改为使用玩家的 UUID。因此,1.2 及更低版本的插件将无法打开 1.3(及更高版本)生成的背包。当然,1.3 版本会将旧格式的背包转换为新格式。
功能
- 可制作背包
- 大小可调
- 可通过命令(需要 OP 权限)或右键点击背包打开
- 可以在特定世界中禁用。
- 可以更改合成配方。
- 自动保存
- 背包可以分组。
- 物品材质和耐久度可更改
- 可按需设置死亡时掉落内容物
命令与权限
| 命令 | 功能 | 权限 |
|---|---|---|
| /backpack | 打开你自己的背包。 | backpack.open.command.own |
| /backpack <Owner> | 打开指定玩家的背包。 | backpack.open.command.other |
| /giveBackpack | 给予你一个背包。 | backpack.give.self |
| /giveBackpack <Player> | 给予指定玩家一个背包。 | backpack.give.other |
| /reloadBackpack | 重新加载插件。 | backpack.reload |
配置
插件会自动创建一个带有默认设置的配置文件。你可以编辑此文件(旧的背包可能无法与新设置兼容)。如果你想重置配置,只需删除它即可。
权限
以下是所有可用的权限:
| 权限 | 默认值 |
|---|---|
| backpack.craft | true |
| backpack.open.item | true |
| backpack.open.command.own | OP |
| backpack.open.command.other | OP |
| backpack.give.self | OP |
| backpack.give.other | OP |
| backpack.reload | OP |
| backpack.size.X (1 <= X <= 6) | false |
关于 backpack.size.X 的更多信息请参阅下一节。
调整背包大小
你可以更改背包的大小:
最小:1 行
最大:6 行
如果你希望特定的权限组拥有不同大小的背包,可以授予他们从 backpack.size.1 到 backpack.size.6 的权限。
如果一个玩家拥有多个 backpack.size.X 权限,则使用最高的那个。如果一个玩家没有此类权限,则将使用配置文件中定义的大小。当我提到“大小”时,指的是背包的行数。
更改合成配方
你可以在 crafting.txt 文件中编辑背包的合成配方。
默认情况下如下所示:
L=LEATHER
C=CHEST
LLL
LCL
LLL
如果你想更改它,请注意以下几点:
- 不要在一行中写入超过一个“信息”。
- 在配方中,空格相当于空气。
- 你不需要像这里这样的 3x3 配方,它可以是介于 1x1 到 3x3 之间的任何尺寸。宽度和高度不需要相同。
- 如果你不知道物品的确切名称,也可以使用其 ID。
- 在每个“=”前面只使用一个字符。
- 不要在文件中留空行。
如果你想禁止某用户进行合成,请为其设置 backpack.craft 权限为 false。
更改物品材质
你可以更改背包的物品材质,但使用其他(旧)材质创建的所有背包仍然可用。
如果你不希望之前的背包可用,则必须在配置中更改耐久度。
你可以使用(可放置的)方块作为物品,当用户打开背包时它们不会被放置,但你应注意耐久度:方块只能使用少数几个耐久度数值,大多数只允许零,但例如头颅方块的耐久度可以高于 0 并改变头颅类型。
禁止使用的世界
如果你想在某个世界中禁用背包的使用,请将世界名称放入 bannedWorlds.txt 文件中。你可以通过读取保存世界数据的文件夹名称来获取世界名称。不要在每一行中放入超过一个名称。
背包分组
你可以通过在 "groups" 目录中创建一个以组名命名的文件(可以添加 ".txt" 后缀)来对背包进行分组。在这个文件中,你可以放入任意数量的世界名称,但每行只能放一个名称。如果你不知道世界的名称,请阅读上一段内容。保存在组中的背包与组名绑定,因此如果你不想重置背包,请不要更改组名。任何不在组内或被禁止的世界,都会使用与非组内所有世界相同的背包。不要将一个世界添加到多个组中。
用法
例如,当你有一个空岛世界,并且不希望玩家通过背包将物品从普通世界运输到这个世界时,可以使用此功能。
注意
如果编辑运行服务器所在的文件夹需要管理员权限,插件将无法工作,因为它必须在 "/plugins" 文件夹中创建自己的文件夹,用于保存重要数据(如配置和背包)。 请勿在配置文件中使用特殊字符,否则插件可能无法加载。
支持
如果你在使用该插件时遇到任何问题或发现了错误,请发表评论。如果出现异常,请发送你的 server.log 文件。如果你的 Bukkit 服务器经常使用,日志文件可能会非常大。如果是这种情况,请只发送与我图片相似的部分,因为它们对我很有用。

由 Numero Uno 展示
Craftable Backpacks
This plugin adds a craftable backpack with 18 slots by default. The size can be changed. The client doesn't need any mods. Everything is manged by the server.
Crafting
This is the default crafting recipe:
You can change it in the crafting.txt file.
Update Annotation
If you are a new user of this plugin you can skip this point.
Configuration Changes
You need to put the following lines into you config.yml file, if they are not already there:
BackPackMaterial: LEATHER
DropBackpackContentOnDeath: true
You can do this by copying this line into the config if you have individual settings or by deleting the old config to get a new one.
UniqueId instead of Name
In the Minecraft News you can read: "We have pushed out an update that supports name changes, however we will not allow name changes until a future date."
That means plugin developers new have to use UUIDs (=UniqueId), because Name won't be static anymore. I changed the way the plugin saves the backpacks from the player's name to the player's UUID. As a result of this the plugin versions 1.2 and below wont be able to open Backpacks from the versions 1.3 (and higher). Of course the verison 1.3 will translate the old backpacks into the new format.
Features
- Craftable Backpack
- Resizable
- Can be opened by command(needs OP) or by rightclicking with the backpack
- Can be disabled in specific worlds.
- Crafting recipe can be changed.
- Saves automatically
- Backpacks can be grouped.
- Changeable item and durability
- If wished, drops content on death
Commands and Permissions
| Command | Function | Permission |
|---|---|---|
| /backpack | Opens your backpack. | backpack.open.command.own |
| /backpack <Owner> | Opens the backpack of the given player. | backpack.open.command.other |
| /giveBackpack | Gives you a backpack. | backpack.give.self |
| /giveBackpack <Player> | Gives the given player a backpack. | backpack.give.other |
| /reloadBackpack | Reloads the plugin. | backpack.reload |
Configuration
The plugin automatically creates a config with the default settings. You can edit this file if you want (the old backpacks might not work with the new settings). If you want to reset your config simply delete it.
Permissions
Here are all permissions you can use:
| Permission | Default |
|---|---|
| backpack.craft | true |
| backpack.open.item | true |
| backpack.open.command.own | OP |
| backpack.open.command.other | OP |
| backpack.give.self | OP |
| backpack.give.other | OP |
| backpack.reload | OP |
| backpack.size.X (1 <= X <= 6) | false |
More information to backpack.size.X can be found in the next paragraph.
Resizing the Backpack
You can change the size of the backpack:
Minimum: 1 row
Maximum: 6 rows
If you want specific groups to have different backpack sizes you can give them permissions from backpack.size.1 to backpack.size.6.
If a player has more than one backpack.size.X permission the highest will be used. If a player has no such permission the size definded in the config will be used. Whenever I say size I mean the size of the backpack in rows.
Changing the Crafting Recipe
You can edit the crafting recipe of the backpack in the crafting.txt file.
It looks like this by default:
L=LEATHER
C=CHEST
LLL
LCL
LLL
If you want to change it pay attention to these points:
- Dont write more than one "information" in one line.
- In the recipe space acts like air.
- You dont need a 3x3 recipe like here, it can be everything between 1x1 and 3x3. The width and the height don't need to be the same.
- If you don't know the exact name of a item, you can also use the ID.
- Use only one character in front of each "=".
- Don't put empty lines in the file.
If you want to disable the crafting for a user set the permission backpack.craft to false for him.
Changing the Item Material
You can change the item material of the backpack, but all backpacks created with another(the old) Material will still be usable.
If you dont want previous backpacks to be usable you have to change the durability in the config.
You can use (placeable) blocks as item, they wont be places when the user opens the backpack, but you should pay attention to the durability: Blocks only can use a few numbers for durabilitys, most only allow zero, but e.g. the skull-block's durability can be higher than 0 and changes the skull-type.
Banning Worlds
If you want to disable using the backpack in a world, put the name of the world in the bannedWorlds.txt file. You can get the name of the world, by reading the name of the folder in which the world data is saved. Don't put more than one name in one line.
Grouping Backpacks
You can group backpacks by creating a file with the group name as file name(you can add ".txt") in the "groups" directory. In this file you can put as many world names as you want, but don't put more than one name in one line. If you don't know the name of the world, read the previous paragraph. The backpacks saved in a group are bound to the group name, so don't change it, if you don't want to reset the backpacks. Every world, that is not in a group or banned, uses the same backpacks as all worlds that are not in group. Don't put a world in more than one group.
Usage
This can be used e.g. if you have a skyblock world, and you don't want your players to transport items via backpack into this world from the normal world.
Attention
If editing the folder in which you are running the server needs admin rights, the plugin can't work, as it has to create a own folder in the "/plugins" Folder, where it saves important data as the config and the backpacks. Prevent using special characters in the config, otherwise the plugin could not be able to load.
Support
Please write a comment if you have any problems with the plugin or detected a bug. Please send me your server.log file if there was a exception. Your log file could be very big if you often use your bukkit server. If this is the case please send me only parts, which are similar to this picture, because they're interesting for me.

Showcase by Numero Uno
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
下载 Craftable Backpacks
- 修复了一个编码错误
* 插件专用的重载命令显示插件已成功重载,但实际上并未重载。(=> 请使用 Bukkit 命令 /reload 或重启服务器)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧