InventoryDropChance 允许为玩家在死亡时掉落的物品设置自定义掉落几率。
命令
/mnd (makenodrop) <add_lore> <chance>:为单个物品添加在死亡时保留的几率,通过此命令添加的几率始终优先于配置中的几率<add_lore>:向物品添加描述(lore),默认不添加描述<chance>:在死亡时保留该物品的几率(百分比),默认为 100
/scrolls <add_lore> <chance>:使手中的物品成为卷轴,默认情况下卷轴没有几率被保留。使用卷轴可以将指定的几率应用到任何物品上,方法是将卷轴拖放到背包中的另一个物品上(创造模式下无效)<add_lore>:向物品添加描述(lore),默认不添加描述<chance>:在死亡时保留该物品的几率(百分比),默认为 0
/idc (inventorydropchance) reload:重新加载配置文件
权限
inventorydropchance.inventorydropchance- 允许使用/idc命令inventorydropchance.reload- 允许使用/idc reload命令inventorydropchance.makenodrop- 允许使用/mnd命令inventorydropchance.scrolls- 允许使用/scrolls命令inventorydropchance.X- 允许用户拥有 X% 的几率在死亡时保留物品,其中 X 是 0 到 100 之间的数字(例如inventorydropchance.75表示 75% 的几率)(拥有 OP 权限的玩家将始终拥有 100% 的几率保留物品)
集成
ItemsAdder:支持 ItemsAdder 自定义物品,您可以在配置中使用其命名空间 ID 指定 ItemsAdder 物品的掉落几率WorldGuard:新增两个标志:idc-region-drop-chance:设置区域内所有玩家物品的自定义掉落几率idc-disabled:完全禁用区域内的 InventoryDropChance 功能
AxGraves:物品不会在死亡时掉落,而是存储在 AxGraves 的坟墓中
配置
lang.yml - 语言文件,允许自定义插件发送的所有消息。(尚不支持 MiniMessage 格式,添加支持需要放弃对 1.16.5 的支持)。
此外,您还可以启用玩家死亡时的标题和聊天消息,显示保留和掉落的物品数量
config.yml - 主配置文件,允许指定忽略的世界、是否跳过“消失之诅咒”(带有消失之诅咒的物品将始终被移除,无视几率),
以及几率是应用于整个物品堆栈还是堆栈中的每个单独物品,并启用/禁用可选功能(如权限几率或卷轴)以及与其他插件的集成
global.yml - 允许根据各种条件为物品指定全局掉落几率:
- 所有物品的默认几率
- 按世界名称
- 按物品材质
- 按附魔
- 按自定义模型数据值
- 按 ItemsAdder 命名空间 ID
默认情况下,检查物品几率的模式为 FIRST_SUCCESS,这意味着第一个匹配到物品的几率将被应用。您可以在配置中将此行为更改为 FIRST_APPLY 模式,这将应用找到的第一个几率,无论是否成功。
此外,检查几率的顺序也可以在配置中更改
InventoryDropChance allow setting custom drop chances for items in player inventories upon death
Commands
/mnd (makenodrop) <add_lore> <chance>: Add an individual chance to save item on death, chances added by this command always have top priority over config chances<add_lore>: Adds lore to the item, by default does not add lore<chance>: Chance (in percent) to save the item on death, by default 100
/scrolls <add_lore> <chance>: Makes item in hand a scroll, scrolls don't have chance to be saved on death by default. Scroll item allows to apply specified chance to any item by dragging and dropping scroll onto another item in inventory (does not work in creative mode)<add_lore>: Adds lore to the item, by default does not add lore<chance>: Chance (in percent) to save the item on death, by default 0
/idc (inventorydropchance) reload: Reloads the config files
Permissions
inventorydropchance.inventorydropchance- Allows use of/idccommandinventorydropchance.reload- Allows use of/idc reloadcommandinventorydropchance.makenodrop- Allows use of/mndcommandinventorydropchance.scrolls- Allows use of/scrollscommandinventorydropchance.X- Allows user to have X% chance to save items on death, where X is a number from 0 to 100 (e.g.inventorydropchance.75for 75% chance) (Players with OP permission will always have 100% chance to save items on death)
Integrations
ItemsAdder: Supports ItemsAdder custom items, you can specify drop chances for ItemsAdder items in the config using their namespace IDsWorldGuard: Adds 2 new flags:idc-region-drop-chance: Sets a custom drop chance for all items for players within the regionidc-disabled: Fully disables InventoryDropChance functionality in region
AxGraves: Instead of dropping items on death, dropped items will be stored in AxGraves grave
Configuration
lang.yml - Language file, allows customizing all messages sent by the plugin. (Does not support MiniMessage formatting yet, adding support requires dropping 1.16.5 support).
Also, you can enable title and chat messages on player death with amount of saved and dropped items
config.yml - Main configuration file, allows specifying ignored worlds, skip for Curse of Vanishing (any item Curse of Vanishing will always be removed ignoring chance),
if chance is applied to an item stack or each item in the stack individually, and enable/disable optional features (like permission chance or scrolls) and integrations with other plugins
global.yml - Allows specifying global drop chances for items by based on various criteria:
- Default chance for all items
- By the world name
- By item material
- By the enchantment
- By the custom model data value
- By the ItemsAdder namespace ID
By default, chances for item are checked in FIRST_SUCCESS mode, meaning that the first chance that success the item will be applied. You can change this behavior to FIRST_APPLY mode in the config, which will apply the first chance that is found for the item, regardless of success.
Also order of checking chances can be changed in the config as well
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 InventoryDropChance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复墓中物品合并问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧