--
This commit is contained in:
parent
e055c7310a
commit
0de0e8d880
236 changed files with 95 additions and 3615 deletions
|
|
@ -1,30 +0,0 @@
|
|||
package MysticRuins;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
|
||||
public class DungeonLoot
|
||||
{
|
||||
public DungeonLoot()
|
||||
{
|
||||
addLoot();
|
||||
}
|
||||
|
||||
public static ChestGenHooks MysticRuinChest;
|
||||
|
||||
public static void addLoot ()
|
||||
{
|
||||
MysticRuinChest = new ChestGenHooks("MysticRuinChest", new WeightedRandomChestContent[0], 3, 27);
|
||||
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.ingotGold, 1, 0), 60, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.diamond, 1, 0), 100, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.ingotIron, 1, 0), 30, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.enderPearl, 4, 0), 20, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.appleRed, 3, 0), 10, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.appleGold, 1, 0), 50, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.emerald, 1, 0), 200, 1, 1));
|
||||
MysticRuinChest.addItem(new WeightedRandomChestContent(new ItemStack(Item.shovelIron, 1, 0), 60, 1, 1));
|
||||
}
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ package MysticRuins;
|
|||
|
||||
import java.io.File;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import net.minecraftforge.common.DungeonHooks;
|
||||
|
|
@ -9,6 +10,7 @@ import net.minecraftforge.common.EnumHelper;
|
|||
import net.minecraftforge.common.Configuration;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
import cpw.mods.fml.common.Mod.Init;
|
||||
import cpw.mods.fml.common.Mod.Instance;
|
||||
import cpw.mods.fml.common.Mod.PostInit;
|
||||
|
|
@ -26,23 +28,14 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
|
|||
|
||||
public class MysticRuins
|
||||
{
|
||||
@PreInit
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
Config.initialize(new File(event.getModConfigurationDirectory(), "Mystic Mods/Mystic Ruins.cfg"));
|
||||
Config.save();
|
||||
}
|
||||
|
||||
@Init
|
||||
public void load(FMLInitializationEvent event)
|
||||
{
|
||||
|
||||
GameRegistry.registerWorldGenerator(new WorldGenRuin());
|
||||
GameRegistry.registerWorldGenerator(new WorldGenRuin$1());
|
||||
GameRegistry.registerWorldGenerator(new WorldGenMysticDungeon());
|
||||
}
|
||||
|
||||
@PostInit
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue