此模组添加了 4 种箱子物品,打开后可以获取由战利品表定义的物品。
默认情况下,这些箱子在游戏世界中除了创造模式菜单外无法通过任何方式获得,因此你需要借助其他模组将它们添加到怪物掉落、随机宝箱战利品或任务奖励中。
要添加你自己的战利品,只需覆盖战利品表 "lootchests:serious_loot" 即可。
它包含 4 个表条目:"common"(普通)、"uncommon"(稀有)、"rare"(史诗)和 "mythic"(传说)。
想了解原版战利品表的工作原理,请查看此处:
你可以将自己的战利品表文件添加到世界保存文件夹中,或者使用可以修改它的模组。个人推荐使用 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");
// 获取所有现有的池
val common = table.getPool("common");
val uncommon = table.getPool("uncommon");
val rare = table.getPool("rare");
val mythic = table.getPool("mythic");
// 设置抽取次数。默认情况下,每个池的 minRoll 为 1,maxRoll 为 3
common.setRolls(3, 10);
// 向池中添加入战利品
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, [], []);
This mod adds 4 chest items that can be opened to aquire items, defined by a loot table.
By default these chests can't be aquired anywhere in game other than the creative menu, so you will need a mod to either add them to mob drops, random chest loot or quest rewards.
To add your own loot, just override the loot table "lootchests:serious_loot".
It has 4 tables entries, "common", "uncommon", "rare" and "mythic".
To learn more about how vanilla loot tables work, look here:
Either add your own loot table file to your world save folder, or use mods that modify it. Personally i recommend using LootTweaker.
Vanilla Example:
{
"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 Example:
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
下载 SeriousCreeper's Loot Chests
下载 SeriousCreeper's Loot Chests
下载 SeriousCreeper's Loot Chests
下载 SeriousCreeper's Loot Chests
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SeriousCreeper's Loot Chests
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SeriousCreeper's Loot Chests
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SeriousCreeper's Loot Chests
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SeriousCreeper's Loot Chests
修复了注册战利品表时的低级错误。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧