概述
类似于生物阶段、配方阶段,本模组允许你在游戏阶段中加入单独的战利品表或者表中的特定物品,来达到限制的效果。
下面有一些实例,更多详细信息请阅读 CurseForge Pages。
实例
//导包
import mods.lootstages.LootStages;
//格式
LootStages.addChestItemStage(String stage, ResourceLocation table, IItemStack itemStack);
//例句
LootStages.addChestItemStage("one", <resource:minecraft:chests/village/village_butcher>, <item:minecraft:beef>);
//格式
LootStages.addChestTableStage(String stage, ResourceLocation table, ResourceLocation replaceTable);
//例句
LootStages.addChestTableStage("two", <resource:minecraft:chests/village/village_butcher>,
<resource:minecraft:chests/village/village_mason>);
//格式
LootStages.addEntityTableStage(String stage, ResourceLocation table, ResourceLocation replaceTable);
//例句
LootStages.addEntityTableStage("three",
<resource:minecraft:entities/pig>, <resource:minecraft:chests/village/village_butcher>);
//格式
LootStages.addBlockTableStages(String stage, Block block, ResourceLocation replaceTable);
LootStages.addBlockTableStages(String stage, Block block, IItemStack itemStack);
//例句
LootStages.addBlockTableStages("test1", <block:minecraft:dirt>, <resource:minecraft:chests/village/village_mason>);
LootStages.addBlockTableStages("test2", <block:minecraft:dirt>, <item:minecraft:beef>);