概述
CSGO 箱子是一个允许用户自定义箱子物品的模组,可通过配置文件的 csbox/box.json 文件添加箱子。
默认情况下包含一个初始箱子,允许设置箱子的名称、开箱钥匙、箱子里的物品,指定怪物掉落和掉率,出货率。
模组添加了一个制作箱子内容的可视化魔改器,和 CSGO 一样,箱子里包含5个等级的物品,每行的槽位代表该行稀有度的能放置物品的最大数量,金色可以放置更多的物品,搜索框内可以输入箱子的名字,按下“提交”会在原先配置的 JSON 里追加额外的箱子内容,重启游戏后生效,默认会保存物品的 NBT,但读取 NBT 需要加上 [CraftTweaker]。懒得抄了
示例
[
{
"name": "武器补给箱",//箱子名称
"key": "csgobox:csgo_key0",//"钥匙名称"
"drop": 0.12,//怪物掉率,取值0-1,为0则不掉落
"random": [//稀有度,取值>0,爆率是在当前稀有度/稀有度总和
2,//金色稀有度权重
5,//红色稀有度权重
6,//粉色稀有度权重
20,//紫色稀有度权重
625//蓝色稀有度权重
],
"entity": [//指定哪些实体死亡时掉落
"minecraft:zombie",
"minecraft:skeleton"
],
"grade1": [//蓝色稀有度物品
"minecraft:stone_sword","minecraft:iron_axe","minecraft:iron_shovel","minecraft:iron_pickaxe","minecraft:iron_axe","minecraft:iron_hoe","minecraft:iron_sword"
],
"grade2": [//紫色稀有度物品
"minecraft:golden_sword","minecraft:golden_axe","minecraft:golden_axe","minecraft:golden_pickaxe","minecraft:golden_shovel"
],
"grade3": [//粉色稀有度物品
"minecraft:diamond_shovel","minecraft:diamond_pickaxe","minecraft:diamond_hoe"
],
"grade4": [//红色稀有度物品
"minecraft:diamond_axe","minecraft:diamond_sword"
],
"grade5": [//金色稀有度物品
"minecraft:netherite_sword","minecraft:netherite_axe","minecraft:netherite_pickaxe","minecraft:netherite_shovel","minecraft:netherite_hoe"
]
}
]