forked from ReikaKalseki/ChromatiCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChromaChests.java
48 lines (41 loc) · 2.43 KB
/
ChromaChests.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2015
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.ChromatiCraft;
import Reika.ChromatiCraft.Auxiliary.ChromaStacks;
import Reika.ChromatiCraft.Registry.ChromaBlocks;
import Reika.ChromatiCraft.Registry.ChromaItems;
import Reika.ChromatiCraft.Registry.ChromaOptions;
import Reika.ChromatiCraft.Registry.CrystalElement;
import Reika.DragonAPI.Instantiable.Worldgen.LootController;
import Reika.DragonAPI.Instantiable.Worldgen.LootController.Location;
public class ChromaChests {
private static final LootController data = new LootController();
public static void addToChests() {
for (int i = 0; i < 16; i++) {
data.addItem(3, Location.BONUS, ChromaStacks.getShard(CrystalElement.elements[i]), 1, 5, 1);
data.addItem(2, Location.DUNGEON, ChromaStacks.getShard(CrystalElement.elements[i]), 2, 8, 2);
data.addItem(3, Location.VILLAGE, ChromaStacks.getShard(CrystalElement.elements[i]), 1, 3, 2);
data.addItem(1, Location.PYRAMID, ChromaStacks.getShard(CrystalElement.elements[i]), 4, 16, 5);
data.addItem(1, Location.JUNGLE_DISPENSER, ChromaStacks.getShard(CrystalElement.elements[i]), 2, 9, 3);
}
data.addItem(1, Location.DUNGEON, ChromaItems.FRAGMENT.getStackOf(), 1, 1, 10);
data.addItem(1, Location.JUNGLE_PUZZLE, ChromaItems.FRAGMENT.getStackOf(), 1, 2, 20);
data.addItem(1, Location.PYRAMID, ChromaItems.FRAGMENT.getStackOf(), 1, 1, 20);
data.addItem(1, Location.STRONGHOLD_LIBRARY, ChromaItems.FRAGMENT.getStackOf(), 1, 3, 50);
data.addItem(1, Location.STRONGHOLD_CROSSING, ChromaItems.FRAGMENT.getStackOf(), 1, 3, 10);
data.addItem(1, Location.STRONGHOLD_HALLWAY, ChromaItems.FRAGMENT.getStackOf(), 1, 3, 10);
data.addItem(3, Location.VILLAGE, ChromaItems.FRAGMENT.getStackOf(), 1, 1, 5);
data.addItem(3, Location.MINESHAFT, ChromaItems.FRAGMENT.getStackOf(), 1, 1, 2);
data.addItem(4, Location.DUNGEON, ChromaBlocks.GLOWSAPLING.getStackOf(), 1, 1, 5);
data.addItem(4, Location.VILLAGE, ChromaBlocks.GLOWSAPLING.getStackOf(), 1, 1, 2);
data.addItem(4, Location.JUNGLE_DISPENSER, ChromaBlocks.GLOWSAPLING.getStackOf(), 1, 1, 8);
data.registerToWorldGen(ChromatiCraft.instance, ChromaOptions.CHESTGEN.getValue());
}
}