宝箱插件概述 – 可定制的战利品宝箱
该插件允许服务器管理员定义多种类型的宝箱,每种宝箱都有自己的一套战利品。
宝箱可以单独启用或禁用,让管理员可以对可用战利品进行精细控制。
为每个宝箱创建战利品表,指定玩家将在里面找到的物品、皮肤、数量和概率。
要求:
宝箱生成:
宝箱在游戏世界中根据预定义的容器和机会生成。
管理员可以选择宝箱生成的地方,并有生成几率。
权限
控制谁可以使用 givechest 命令。
命令:/givechest “display name” quantity
用法:
使用所需的战利品设置您的自定义宝箱。
让玩家通过与这些宝箱互动来发现财富。
管理员可以分发宝箱作为特殊活动的奖励等。
配置:
Treasure Chest 插件是高度可配置的,允许您在 Rust 服务器上创建一个真正独特的战利品系统。自定义从箱子内的物品到找到它们的机会的所有内容。
配置:
"Enabled - true/false, if false chest will not spawn in PrefabPaths",
"CustomStackSize - now you can change the stack size of each chest",
"You can change skin and display the name of each chest",
"MinChestAmount/MaxCHestAmount - how much items player will get from chest ",
"You can add more items to loottable",
"Min/MaxAmount - quantity of that item (you can put min/max - to same number (1),so its min and max 1 quantity of that item)",
"Probability - from 0.0 (0%) to 1.0 (100%) chance to get that item",
"command : /givechest display name quantity; example /givechest green chest 5",
"Spawns - PrefabPath (chose where will chest spawn),SpawnChance (0-100 ,chance to spawn chest in that prefab)",
"Dont put same prefabpath for more type of chests,for each chest use different prefabpath",
"Opening effect : if empty its disabled,you can change opening effect to something else"
"Chests": [
{
Enabled = true,
"CustomStackSize": 100,
ItemDisplayName = "Green Chest",
ItemShortname = "xmas.present.large",
LootBoxSkinID = 3038475567,
MinChestAmount = 1,
MaxChestAmount = 2,
LootTable = "greenchest",
LootTables = new Dictionary<string, List<LootTableItem>>
{
["greenchest"] = new List<LootTableItem>
{
new LootTableItem
{
Shortname = "rock",
MinAmount = 1,
MaxAmount = 5,
Probability = 1.0F,
SkinID = 2108583966,
DisplayName = "Best Rock In Game"
},
new LootTableItem
{
Shortname = "wood",
MinAmount = 100,
MaxAmount = 300,
Probability = 1.0F,
SkinID = 0,
DisplayName = ""
},
new LootTableItem
{
Shortname = "stones",
MinAmount = 100,
MaxAmount = 300,
Probability = 1.0F,
SkinID = 0,
DisplayName = ""
}
}
},
"Spawns": [
{
"PrefabPath": "assets/bundled/prefabs/radtown/crate_normal_2.prefab", // where can "green chest" spawn
"SpawnChance": 50.0 // chance to spawn in that crate_normal_2
}
]
},