介绍
介绍由机器翻译自 CurseForge 原页面,仅供参考。
这个模组添加了 4 种箱子物品,打开后可以获取由战利品表定义的物品。
默认情况下,除了创造模式物品栏外,游戏中其他地方都无法获得这些箱子,因此你需要使用模组将它们添加到生物掉落物、随机箱子战利品或任务奖励中。
要添加自己的战利品,只需覆盖战利品表 “lootchests:serious_loot”。
其中包含 4 个表条目:”common”、”uncommon”、”rare” 和 “mythic”。
要了解原版战利品表的运作方式,请查看这里: https://minecraft.gamepedia.com/Loot_table
你可以将自己的战利品表文件添加到世界存档文件夹,也可以使用能修改战利品表的模组。我个人推荐使用 LootTweaker。
原版示例:
{
"pools": [
{
"name": "common",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "minecraft:stone",
"weight": 1
}
]
},
{
"name": "uncommon",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "minecraft:apple",
"weight": 1
}
]
},
{
"name": "rare",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "minecraft:diamond",
"weight": 1
}
]
},
{
"name": "mythic",
"rolls": {
"min": 1,
"max": 3
},
"entries": [
{
"type": "item",
"name": "minecraft:nether_star",
"weight": 1
}
]
}
]
}
LootTweaker 示例:
import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;
import loottweaker.vanilla.loot.Conditions;
import loottweaker.vanilla.loot.Functions;
val table = LootTables.getTable("lootchests:serious_loot");
// Grab all the existing pools
val common = table.getPool("common");
val uncommon = table.getPool("uncommon");
val rare = table.getPool("rare");
val mythic = table.getPool("mythic");
// Set the rolls. By default, each pool has a minRoll of 1, maxRoll of 3
common.setRolls(3, 10);
// Add loot to pools
common.addItemEntryHelper(<minecraft:stone> * 16, 50, 1, [Functions.setCount(8, 16)], []);
uncommon.addItemEntryHelper(<minecraft:cooked_chicken> * 4, 50, 1, [], []);
rare.addItemEntryHelper(<minecraft:diamond> * 4, 20, 1, [], []);
mythic.addItemEntryHelper(<minecraft:nether_star>, 1, 1, [], []);
常见问题
SeriousCreeper’s Loot Chests 支持哪些 Minecraft 版本?
SeriousCreeper’s Loot Chests 支持 Minecraft Java 版 1.10.2–1.12.2,共 4 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
SeriousCreeper’s Loot Chests 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
SeriousCreeper 的其他作品
查看全部 →[ANGRY PIXEL] The Betweenlands
by MrCompost, GoryMoon 等
介绍一下 The Betweenlands——一个黑暗而危险的环境……
2724万
2 年前
CurseForge
Fragile Blocks
by SeriousCreeper
根据工具采集等级施加坠落伤害并破坏方块
94.6万
6 年前
CurseForge
TFC Item Barrels
by SeriousCreeper
为 TerraFirmaCraft 添加物品桶
66.7万
3 年前
CurseForge
TFC Create
by SeriousCreeper
为 TerraFirmaCraft 和机械动力提供兼容性的模组
64.1万
3 年前
CurseForge
评论
登录后评论和评分