
Plunder 模组
当玩家受到伤害时,无论是来自 PvP 还是自然原因(可配置),他们都有几率从背包中掉落一些物品到地上。在已经混乱的 PvP 中抢夺他人的物品吧!
特性
- 完全可自定义,拥有超过 15 项配置选项!
- 可针对每种物品自定义掉落率,只需编辑一个简单的 JSON 文件即可。
- 粒子效果高亮显示玩家掉落物品的时刻。
- 无需重启服务器即可重载配置。(命令:/plunderreload)
用法/下载
在 Modrinth 网站上下载该模组,并将其放入服务器的模组文件夹中。
若要为任意物品设置自定义概率,请导航至 /mods/plunder/odds.json 文件。要创建自定义掉落几率,请将 "item" 替换为你想要的 Minecraft 物品 ID,并将 chance 替换为你想要的掉落几率(0.1 代表 10%)。
{
"dropOdds": [
{
"item": "diamond",
"chance": 0.05
},
{
"item": "netherite_ingot",
"chance": 0
},
{
"item": "stone",
"chance": 0.1
},
{
"item": "gold_ingot",
"chance": 0
}
]
}
此外,你可以配置 /mods/plunder/configuration.properties 文件以设定物品掉落时机、默认掉落几率以及粒子效果。
# 护甲部件的默认掉落几率(如果在 odds.json 中未配置)
armorDropChance = 0.01
# 工具的默认掉落几率(如果在 odds.json 中未配置)
toolDropChance = 0.01
# 所有其他物品/方块等的默认掉落几率(如果在 odds.json 中未配置)
itemDropChance = 0.01
# 单个堆叠最多可掉落的物品数量(最大 64)
maxDropAmount=12
# 物品掉落之后拾取它们之间的延迟是多少?(以刻为单位)
pickUpTime=20
...
演示


Plunder Mod
Whenever a player takes damage, whether from PVP or from natural causes (configurable), they have a chance to drop some of the items from their inventory onto the ground. Steal others items in already chaotic PVP!
Features
- Fully customizable with over 15 configuration options!
- Customizable drop rates for every item, only needing to edit a simple JSON file.
- Particles to highlight when a player has dropped some of their items.
- Reloadable configuration without having to restart the server. (Command: /plunderreload)
Usage/Download
Download the mod on the Modrinth website and put it in your servers mod folder.
To create custom odds for any item, navigate to the /mods/plunder/odds.json file. To create a custom drop chance, replace the "item" with the Minecraft item ID of your desired item, and replace the chance with your desired drop chance (0.1 being 10%).
{
"dropOdds": [
{
"item": "diamond",
"chance": 0.05
},
{
"item": "netherite_ingot",
"chance": 0
},
{
"item": "stone",
"chance": 0.1
},
{
"item": "gold_ingot",
"chance": 0
}
]
}
Additionally, you can configure the /mods/plunder/configuration.properties file to configure when items are dropped, the default drop chances, and the particles.
# Default drop chance for armor pieces (if not configured in odds.json)
armorDropChance = 0.01
# Default drop chance for tools (if not configured in odds.json)
toolDropChance = 0.01
# Default drop chance for all other items/blocks/etc. (if not configured in odds.json)
itemDropChance = 0.01
# Maximum amount of items that can dropped from a single stack (max 64)
maxDropAmount=12
# How long should the delay be for picking up items after they have been dropped? (in ticks)
pickUpTime=20
...
Demo

评论 0
登录后参与评分
还没有评论,来抢沙发吧