描述
此插件为你的世界添加了各种宝藏和惊喜袋。这些特殊物品将由自然生成的怪物(如僵尸和蜘蛛)掉落。当玩家获得惊喜袋后,手持该物品并点击鼠标右键即可打开它。打开后会随机获得一件物品,随后袋子消失。
惊喜袋的列表以及打开每个袋子时玩家可获得的物品列表均在插件的配置文件中设置。插件自带一组预定义的袋子:
- Treasure
- Trick-or-treat Box(非常适合万圣节)
- Surprise Bag
- Unknown Book
- Wintersday Gift(非常适合圣诞节)
每种物品的掉落率各不相同。有关更多信息,请参阅配置文件。
例如,玩家打开 Unknown Book 可能会获得一本锋利 I 附魔书或其他附魔书。Trick-or-treat Box 可能会给玩家一条生鱼、一个南瓜派,或者罕见地获得一顶钻石头盔。
命令
有一个主命令和多个子命令:
- /surprisebags version - 获取插件版本。
- /surprisebags spawn <bag> [count] [player] - 通过名称给你或某位玩家发放一个袋子。
- /surprisebags list - 列出所有现有的袋子。
- /surprisebags edit <bag> - 编辑袋子的内容。
- /surprisebags save <bag> - 将袋子的内容保存到配置文件中。
- /surprisebags addbag <bag-id> [name] [drop-chance] - 添加一个新袋子
- /surprisebags removebag <bag-id> - 移除自定义袋子
- /surprisebags reload - 重新加载配置文件。
权限
有三个权限设置:
- surprisebags.command - 允许使用 SurpriseBags 管理员命令(默认仅限管理员)。
- surprisebags.openbag - 允许打开袋子(默认所有人可用)。
- surprisebags.edit - 允许编辑或保存袋子的内容(默认仅限管理员)。
配置
你可以使用游戏内命令添加/移除惊喜袋。你可以通过编辑 config.yml 来更改不同的设置,该文件位于安装后的插件文件夹中。每个袋子都有其独立的 YAML 文件,你可以在其中列出玩家打开袋子时将获得的物品。玩家每次只会获得恰好一件物品,因此添加大量相同类型的物品会增加获得它们的几率,而仅出现一次的物品则会比较稀有。你可以打开任何预定义袋子(例如 Trick-or-treat box)的配置文件,以查看这些列表的工作原理。
你可以更改袋子的总体掉落率,以及每个袋子的特定掉落率。
如果你安装了 WorldGuard,可以将掉落限制在某个区域内。区域 ID 在 config.yml 中设置。
如果你希望袋子从特定的怪物列表中掉落,可以在袋子的 YAML 文件中添加 "limit-mob" 设置。例如:
# # Limit Mobs # # Limit the drop of this bag to the listed mobs only. # limit-mob: - creeper - zombie
请注意,这应该放在袋子的文件中,而不是 config.yml 中(换句话说,它是按袋子定义的)。
Description
This plugin adds various treasures and surprise bags to your world. These special items will be dropped by naturally-spawned monsters such as Zombies and Spiders. When players obtain the surprise bags, they can open them by clicking the right mouse button while holding them. They will then get a random item and the bag will disappear.
The list of surprise bags is set in the configuration files of the plugin, as well as the list of items that the player can receive when opening each bag. The plugin comes with a predefined set of bags:
- Treasure
- Trick-or-treat Box (perfect for Halloween)
- Surprise Bag
- Unknown Book
- Wintersday Gift (perfect for Christmas)
Each such item has a different drop-rate. Please see the configuration files for more information.
For example, players who open an Unknown Book might get a sharpness I enchanted book or a different enchanted book. Trick-or-treat boxes might get the player a raw fish, a pumpkin pie or, rarely, a diamond helmet.
Commands
There is one main command and several sub-commands:
- /surprisebags version - Get the plugin's version.
- /surprisebags spawn <bag> [count] [player] - Give you or a player a bag by name.
- /surprisebags list - List of existing bags.
- /surprisebags edit <bag> - Edit the bag's contents.
- /surprisebags save <bag> - Save the bag's contents to the configuration file.
- /surprisebags addbag <bag-id> [name] [drop-chance] - Add a new bag
- /surprisebags removebag <bag-id> - remove a custom bag
- /surprisebags reload - Reload the configuration files.
Permissions
There are three permission settings:
- surprisebags.command - Allows you to use the SurpriseBags admin command (defaults to admins only).
- surprisebags.openbag - Allows you to open bags (defaults to everyone).
- surprisebags.edit - Allows you to edit or save the bags contents (defaults to admins only).
Configuration
You may add/remove surprise bags by using the in-game commands. You can change different settings by editing config.yml, which is in the plugin's folder after installation. Each bag has its own YAML file, where you can list the items that players will receive when opening the bag. The players will always receive exactly one item, so adding many items of the same type will increase the chance of receiving them, whereas items which appear only once will be rare. You may open the configuration files of any of the predefined bags (e.g. Trick-or-treat box) to see how these lists work.
You may change the general drop-rate of bags, as well as the specific drop-rate of each bag.
If you have WorldGuard installed, you may limit the drops to one region. The region ID is set on config.yml.
If you want a bag to drop from a specific list of mobs, you can add the "limit-mob" setting to the bag's yaml file. For example:
# # Limit Mobs # # Limit the drop of this bag to the listed mobs only. # limit-mob: - creeper - zombie
Note that this should be in the bag's file, not in config.yml (in other words, it is defined per bag).
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
下载 Surprise Bags
版本 1.8.9
- 背包现在仅在怪物被玩家击杀时才会掉落。
您无需更新配置文件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧