Less chance for overworld TR loot and made in configurable. CLoses #1572
This commit is contained in:
parent
c3979610a9
commit
d37f52a0ce
14 changed files with 110 additions and 114 deletions
|
@ -123,5 +123,12 @@ public class ConfigTechReborn {
|
|||
@ConfigRegistry(config = "generators", category = "solarPanelQuantum", key = "quantumNightRate", comment = "Generation rate during night for Quantum Solar Panel (Value in EU)")
|
||||
public static int quantumGenerationRateN = 64;
|
||||
|
||||
@ConfigRegistry(config = "worlds", category = "loot", key = "enableOverworldLoot", comment = "When true TechReborn will add ingots, machine frames and circuits to OverWorld loot chests.")
|
||||
public static boolean enableOverworldLoot = true;
|
||||
|
||||
@ConfigRegistry(config = "worlds", category = "loot", key = "enableNetherLoot", comment = "When true TechReborn will add ingots, machine frames and circuits to Nether loot chests.")
|
||||
public static boolean enableNetherLoot = true;
|
||||
|
||||
@ConfigRegistry(config = "worlds", category = "loot", key = "enableEndLoot", comment = "When true TechReborn will add ingots, machine frames and circuits to The End loot chests.")
|
||||
public static boolean enableEndLoot = true;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ import net.minecraft.world.storage.loot.conditions.LootCondition;
|
|||
import net.minecraftforge.event.LootTableLoadEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import techreborn.Core;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
public class ModLoot {
|
||||
|
@ -44,18 +45,24 @@ public class ModLoot {
|
|||
public static List<ResourceLocation> lootTables = new ArrayList<ResourceLocation>();
|
||||
|
||||
public static void init() {
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/abandoned_mineshaft"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/desert_pyramid"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/end_city_treasure"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/igloo_chest"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/jungle_temple"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/nether_bridge"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/simple_dungeon"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_corridor"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_crossing"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_library"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/village_blacksmith"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/woodland_mansion"));
|
||||
if (ConfigTechReborn.enableOverworldLoot) {
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/abandoned_mineshaft"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/desert_pyramid"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/igloo_chest"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/jungle_temple"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/simple_dungeon"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_corridor"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_crossing"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/stronghold_library"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/village_blacksmith"));
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/woodland_mansion"));
|
||||
}
|
||||
if (ConfigTechReborn.enableNetherLoot) {
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/nether_bridge"));
|
||||
}
|
||||
if (ConfigTechReborn.enableEndLoot) {
|
||||
lootTables.add(new ResourceLocation(ModInfo.MOD_ID, "chests/end_city_treasure"));
|
||||
}
|
||||
|
||||
for (ResourceLocation lootTable : lootTables) {
|
||||
LootTableList.register(lootTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue