2015-11-15 19:24:36 +01:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("DungeonLoot.java") is part of the Actually Additions mod for Minecraft.
|
2015-11-15 19:24:36 +01:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-11-15 19:24:36 +01:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-05-16 22:54:42 +02:00
|
|
|
* © 2015-2016 Ellpeck
|
2015-11-15 19:24:36 +01:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.misc;
|
2015-11-15 19:24:36 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
2015-11-15 19:24:36 +01:00
|
|
|
|
2016-03-18 23:47:22 +01:00
|
|
|
//TODO Fix dungeon loot (oh god)
|
2016-06-17 23:50:38 +02:00
|
|
|
public final class DungeonLoot{
|
2015-11-15 19:24:36 +01:00
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
if(ConfigBoolValues.DUNGEON_LOOT.isEnabled()){
|
|
|
|
ModUtil.LOGGER.info("Initializing Dungeon Loot...");
|
|
|
|
|
2016-03-18 23:47:22 +01:00
|
|
|
/*ChestGenHooks dungeon = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);
|
2015-11-15 19:24:36 +01:00
|
|
|
ChestGenHooks mineshaft = ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR);
|
|
|
|
ChestGenHooks blacksmith = ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH);
|
|
|
|
|
|
|
|
for(int i = 0; i < TheCrystals.values().length; i++){
|
2016-03-18 23:47:22 +01:00
|
|
|
WeightedRandomChestContent item = new WeightedRandomChestContent(InitItems.itemCrystal, i, 2, 4, 5);
|
|
|
|
WeightedRandomChestContent block = new WeightedRandomChestContent(Item.getItemFromBlock(InitBlocks.blockCrystal), i, 1, 3, 1);
|
2015-11-15 19:24:36 +01:00
|
|
|
dungeon.addItem(item);
|
|
|
|
dungeon.addItem(block);
|
|
|
|
mineshaft.addItem(item);
|
|
|
|
mineshaft.addItem(block);
|
|
|
|
}
|
2016-03-18 23:47:22 +01:00
|
|
|
WeightedRandomChestContent drillCore = new WeightedRandomChestContent(InitItems.itemMisc, TheMiscItems.DRILL_CORE.ordinal(), 1, 1, 3);
|
2015-11-15 19:24:36 +01:00
|
|
|
dungeon.addItem(drillCore);
|
|
|
|
mineshaft.addItem(drillCore);
|
|
|
|
blacksmith.addItem(drillCore);
|
|
|
|
|
2016-03-18 23:47:22 +01:00
|
|
|
WeightedRandomChestContent quartz = new WeightedRandomChestContent(InitItems.itemMisc, TheMiscItems.QUARTZ.ordinal(), 3, 4, 30);
|
2015-11-15 19:24:36 +01:00
|
|
|
dungeon.addItem(quartz);
|
2016-03-18 23:47:22 +01:00
|
|
|
blacksmith.addItem(quartz);*/
|
2015-11-15 19:24:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|