本教程就是告诉大家如何加入物品到战利品袋子和禁用原战利品袋子的物品。


首先当然是装上mod之后启动一次游戏,在游戏里输入指令/lootbags_itemdump,然后在.minecraft文件夹里面创建了一个名叫dumps的文件夹,打开会发现有个叫LootBagsItemDump.txt的玩意,点开就发现类似于minecraft:stone_axe:0:0.084:10:1:1之类的配置,这些都是你打开战利品能获得的物品,minecraft:stone_axe为物品名字,这个格式相信大家都知道,modID+原物品名,接着后面的数字各个冒号的英文:<itemdamage>:<droppercent>:<weight>:<min>:<max>,对应的是是否生成(雾,反正是0就对了,后面会讲到黑名单):战利品袋子里面出现的百分比:堆叠数量:最小值:最大值。


之后关闭在.minecraftconfig里找到配置文件lootbags.cfg。

用记事本打开(小白只会用记事本)。

然后别急,你会发现开始的一段是:

"blacklisted items" {

    # Adding a modid and internal item name to this list will remove the item from the general loot table.  The entry must be in the form <modid>:<itemname>:<damage> on a single line or it won't work right.  Example to blacklist iron ingots: minecraft:iron_ingot:0.  An entire modcan be blacklisted by just entering the modid and nothing else.

    S:"Global Blacklist" <

   

  >

}

这样的一段,这里就是禁止在战利品袋子里出现的物品,之前讲到的例子minecraft:stone_axe:0:0.084:10:1:1这条,变成minecraft:stone_axe:0然后放到S:"Global Blacklist" <的下一行,就像这样:

    S:"Global Blacklist" <

minecraft:stone_axe:0   

  >

}

依次类推,这样你在战利品袋子里面就不会开出名为minecraft:stone_axe的物品了。如何加入物品到战利品袋子以及禁用原战利品袋子的物品-第1张图片


好,那么怎么在战利品袋子里添加想要的物品呢?

这就需要拉到最下面的:

"whitelisted items" {

    # Adding a modid and internal item name to this list will add the item to the Loot Bag drop table.  The entry must be in the form <modid>:<itemname>:<damage>:<min stack size>:<max stack size>:<weighting>:[<nbt data (seriously don't try to make this by hand)> (optional)]  Example to whitelist up to 16 iron ingots with a weight of 50: minecraft:iron_ingot:0:1:16:50.

    S:"Global Whitelist" <


     >

}

这里是白名单,就是同上面黑名单教程的格式一样,名字都是原物品名称,而不是你在游戏里看到的物品名称,比如你想在所有袋子里加入一个原物品名叫minecraft:stone_axe的物品,那么就和上面格式一样,例如:

  S:"Global Whitelist" <

minecraft:stone_axe:0:X:X:X:X

     >

}

这样你就往所有的战利品袋子里添加了一个名叫minecraft:stone_axe的物品,X为你自己自定义。


其他配置视情况自行更改,需要知道怎么禁用战利品和加入战利品就行了如何加入物品到战利品袋子以及禁用原战利品袋子的物品-第2张图片第一次写教程,望见谅!(其实就是刚刚研究完,如果有不对的地方望各位研究透彻的朋友改正)