LootTweaks 使用了我为 CondensedOres 开发的 LuaBlock 系统(该系统目前也用于自定义 CC 和 RC 配方等),以指定对游戏中现有战利品表的更改。
这些文件应放置在 /config/LootTweaksChanges 目录中。
它支持以下操作:
- 清空战利品表
- 移除物品
- 添加物品
- 更改物品权重
- 更改物品概率范围(即每个槽位的最小和最大掉落概率)
- 更改物品数量范围(即每个槽位的最小和最大掉落数量)
- 更改物品 NBT 数据
- 添加“层级”(Tier,见下文)
- 批量操作(见下文)
为了简化大规模更改,它允许定义“更改批次”,以便作为整体应用。例如,如果你希望对 7 个战利品表进行相同的 48 项更改,你只需在批次中定义这 48 项更改,然后将该批次应用到这 7 个表中即可。
它还允许将一组物品定义为“层级”(Tier),这样你可以按稀有度设置一组物品的生成规则,而不是将一堆物品类型定义为功能上等效。
它还支持通过命令动态重新加载配置。
该模组的 GitHub 仓库包含一些示例文件:
Scripts
LootTweaks uses the LuaBlock system I developed for CondensedOres - and which now is used for custom CC and RC recipes, among other things - to specify changes to the loot tables present in the game.
These files go in /config/LootTweaksChanges.
It supports the following operations:
- Clear Loot Table
- Remove Item
- Add Item
- Change Item Weight
- Change Item Chance Bounds (ie min and max chance per slot)
- Change Item Count Bounds (ie min and max count per slot)
- Change Item NBT
- Add "Tier" (see below)
- Batch operations (see below)
To simplify large-scale changes, it allows for the definition of "change batches" which can be applied as a unit, so that if you have the same, say, 48 changes you wish to make to 7 tables, you only need to define those 48 changes in a batch, and then apply that batch to the 7 tables.
It also allows defining groups of items as a "tier", so you can set groups of items by rarity for spawning, rather than defining a bunch of item types as functionally equivalent.
It also supports dynamic configuration reloading with the command.
The mod's GitHub repository contains some sample files:
Scripts
评论 0
登录后参与评分
还没有评论,来抢沙发吧