This commit is contained in:
oitsjustjose 2013-07-07 01:00:52 -05:00
commit 0de0e8d880
236 changed files with 95 additions and 3615 deletions

View file

@ -11,35 +11,32 @@ import net.minecraftforge.common.MinecraftForge;
public class BlockHandler {
public static Block ReinforcedGlass;
public static Block BlockOres;
public static Block BlockBase;
public static void init() {
ReinforcedGlass = new BlockReinforcedGlass(ConfigurationManager.ReinforcedGlassID, true).setHardness(4.5F).setResistance(2000.0F).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("Reinforced Glass");
BlockOres = new BlockOres(ConfigurationManager.BlockOresID).setStepSound(Block.soundStoneFootstep);
BlockBase = new BlockBase(ConfigurationManager.BlockBaseID).setStepSound(Block.soundStoneFootstep);
registerBlocks();
setBlockHarvestLevels();
}
private static void registerBlocks() {
GameRegistry.registerBlock(ReinforcedGlass, "ReinforcedGlass");
GameRegistry.registerBlock(BlockOres, ItemBlockOres.class, "OreBlocks!");
GameRegistry.registerBlock(BlockBase, ItemBlockBase.class, "Base Blocks");
}
private static void setBlockHarvestLevels() {
MinecraftForge.setBlockHarvestLevel(BlockOres, 0, "pickaxe", 3);
MinecraftForge.setBlockHarvestLevel(BlockOres, 1, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 2, "pickaxe", 3);
MinecraftForge.setBlockHarvestLevel(BlockOres, 3, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 4, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 5, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 6, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(BlockOres, 7, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 8, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 9, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 10, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockOres, 11, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 0, "pickaxe", 3);
MinecraftForge.setBlockHarvestLevel(BlockBase, 1, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 2, "pickaxe", 3);
MinecraftForge.setBlockHarvestLevel(BlockBase, 3, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 4, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 5, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 6, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(BlockBase, 7, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 8, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 9, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 10, "pickaxe", 2);
MinecraftForge.setBlockHarvestLevel(BlockBase, 11, "pickaxe", 2);
}
}

View file

@ -1,280 +0,0 @@
package MysticOres.Blocks;
import java.util.List;
import java.util.Random;
import MysticOres.MysticOres;
import MysticOres.Items.ItemHandler;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBreakable;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockOres extends Block {
Icon[] textures;
public BlockOres(int ID) {
super(ID, Material.rock);
setHardness(3F);
setResistance(5F);
setCreativeTab(MysticOres.MysticOresTab);
}
@Override
public int getLightOpacity(World world, int x, int y, int z)
{
return 0;
}
@Override
public int getLightValue(IBlockAccess world, int x, int y, int z)
{
int damageValue = world.getBlockMetadata(x, y, z);
if(damageValue == 2 || damageValue == 3)
{
return 7;
}
else return 0;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
textures = new Icon[16];
for (int i = 0; i < 12; i++)
{
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockOres.ORE_NAMES[i]);
}
}
@Override
public Icon getIcon(int side, int meta) {
return textures[meta];
}
public int idDropped(int par1, Random par2Random, int par3) {
switch(par1){
case 1:return ItemHandler.Resource.itemID;
case 2:return ItemHandler.Resource.itemID;
case 4:return ItemHandler.Resource.itemID;
case 5:return ItemHandler.Resource.itemID;
case 7:return ItemHandler.Resource.itemID;
case 8:return this.BlackSoulstoneDrops(par1, par2Random, par3);
case 9:return this.BlueSoulstoneDrops(par1, par2Random, par3);
case 10:return this.RedSoulstoneDrops(par1, par2Random, par3);
case 11:return ItemHandler.Resource.itemID;
default:return blockID;
}
}
@Override
public int damageDropped(int j) {
switch(j){
case 1:return 8;
case 2:return 4;
case 4:return 5;
case 5:return 7;
case 7:return 10;
case 8:return 0;
case 9:return 0;
case 10:return 0;
case 11:return 6;
default: return j;
}
}
public int xpDropAmount(int j) {
switch(j){
case 1:return 6;
case 2:return 6;
case 4:return 6;
case 5:return 6;
case 7:return 6;
case 8:return 6;
case 9:return 6;
case 10:return 6;
case 11:return 6;
default: return 0;
}
}
protected boolean canSilkHarvest()
{
return true;
}
public int BlackSoulstoneDrops(int par1, Random par2Random, int par3)
{
int w = par2Random.nextInt(6);
if (w == 0)
{
return Item.coal.itemID;
}
if (w == 1)
{
return Item.gunpowder.itemID;
}
/*
if (w == 2)
{
return ItemHandler.ObsidianShard.itemID;
}
if (w == 3)
{
return ItemHandler.GlassShard.itemID;
}
*/
else
{
return Item.sugar.itemID;
}
}
public int RedSoulstoneDrops(int par1, Random par2Random, int par3)
{
for(int i=0;i<3;i++)
{
}
int w = par2Random.nextInt(6);
if (w == 0)
{
return Item.lightStoneDust.itemID;
}
if (w == 1)
{
return Item.gunpowder.itemID;
}
/*
if (w == 2)
{
return ItemHandler.ObsidianShard.itemID;
}
if (w == 3)
{
return ItemHandler.GlassShard.itemID;
}
*/
if (w == 4)
{
return Item.redstone.itemID;
}
/*
if (w == 5)
{
return ItemHandler.MysticPowder.itemID;
}
*/
if (w==6)
{
return Block.obsidian.blockID;
}
/*
if (w==7)
{
return ItemHandler.ObsidianShard.itemID;
}
*/
else
{
return blockID;
}
}
public int BlueSoulstoneDrops(int par1, Random par2Random, int par3)
{
int w = par2Random.nextInt(6);
/*
if (w == 0)
{
return ItemHandler.AgateGem.itemID;
}
if (w == 1)
{
return ItemHandler.TourmalineGem.itemID;
}
if (w == 2)
{
return ItemHandler.TopazGem.itemID;
}
if (w == 3)
{
return ItemHandler.AmethystGem.itemID;
}
if (w == 4)
{
return ItemHandler.IridiumNugget.itemID;
}
*/
if (w == 5)
{
return Item.diamond.itemID;
}
if (w == 6)
{
return Block.obsidian.blockID;
}
if (w == 7)
{
return Item.gunpowder.itemID;
}
if (w==8)
{
return Item.lightStoneDust.itemID;
}
else
{
return blockID;
}
}
//meta specific stuff
public int idPicked(World par1World, int par2, int par3, int par4)
{
return this.blockID;
}
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
{
int meta = world.getBlockMetadata(x, y, z);
return new ItemStack(this, 1, meta);
}
public void getSubBlocks(int i,CreativeTabs tab, List list)
{
list.add(new ItemStack(i,1,0));
list.add(new ItemStack(i,1,1));
list.add(new ItemStack(i,1,2));
list.add(new ItemStack(i,1,3));
list.add(new ItemStack(i,1,4));
list.add(new ItemStack(i,1,5));
list.add(new ItemStack(i,1,6));
list.add(new ItemStack(i,1,7));
list.add(new ItemStack(i,1,8));
list.add(new ItemStack(i,1,9));
list.add(new ItemStack(i,1,10));
list.add(new ItemStack(i,1,11));
}
}

View file

@ -1,92 +0,0 @@
package MysticOres.Blocks;
import java.util.Random;
import MysticOres.MysticOres;
import MysticOres.Items.ItemHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.BlockBreakable;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
public class BlockReinforcedGlass extends BlockBreakable
{
Icon[] textures;
private boolean RenderSide = false;
public BlockReinforcedGlass(int par1, boolean par4) {
super(par1, "ReinforcedGlass", Material.glass, par4);
this.setCreativeTab(MysticOres.MysticOresTab);
this.RenderSide = false;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
textures = new Icon[16];
for(int i=0;i<8;i++)
{
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + "ReinforcedGlass");
}
}
@Override
public Icon getIcon(int side, int meta)
{
return textures[meta];
}
public int idDropped(int par1, Random par2Random, int par3)
{
return ItemHandler.Resource.itemID;
}
@Override
public int damageDropped(int j)
{
return 11;
}
public int quantityDropped(Random par1Random)
{
return 1 + par1Random.nextInt(2);
}
public boolean renderAsNormalBlock()
{
return false;
}
public int getRenderBlockPass()
{
return 0;
}
public boolean isOpaqueCube()
{
return false;
}
protected boolean canSilkHarvest()
{
return true;
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
int var6 = par1IBlockAccess.getBlockId(par2, par3, par4);
return !this.RenderSide && var6 == this.blockID ? false : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
}
}

View file

@ -1,43 +0,0 @@
package MysticOres.Blocks;
import java.util.List;
import MysticOres.MysticOres;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.util.MathHelper;
public class ItemBlockOres extends ItemBlock {
public static String[] ORE_NAMES = new String[] {"Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone",
"Blue Soulstone", "Red Soulstone", "Agate Ore"};
public ItemBlockOres(int par1) {
super(par1);
setMaxDamage(0);
setHasSubtypes(true);
}
@Override
public String getUnlocalizedName(ItemStack itemStack) {
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, ORE_NAMES.length);
return super.getUnlocalizedName() + ORE_NAMES[meta];
}
public int getMetadata(int par1)
{
return par1;
}
@SideOnly(Side.CLIENT)
public Icon getIconFromDamage(int par1)
{
return BlockHandler.BlockOres.getIcon(2, par1);
}
}

View file

@ -47,9 +47,8 @@ public class ConfigurationManager
public static int ResourcesID;
public static int SatchelID;
public static int ReinforcedGlassID;
public static int BlockOresID;
public static int BlockBaseID;
public static int AgateRarity;
public static int AmethystRarity;
@ -99,8 +98,7 @@ public class ConfigurationManager
ResourcesID = config.getItem("Base Resource ID", 15031).getInt();
BlockOresID = config.getBlock("Base Ore ID", 500).getInt();
ReinforcedGlassID = config.getBlock("Reinforced Glass ID", 501).getInt();
BlockBaseID = config.getBlock("Base Block ID", 500).getInt();
AgateRarity = config.get("Ore Rarity", "Rarity of Agate", 3).getInt();
AmethystRarity = config.get("Ore Rarity", "Rarity of Amethyst", 3).getInt();

View file

@ -8,21 +8,21 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
public class LanguageManager
{
public static void init()
{
LanguageRegistry.instance().addName(BlockHandler.ReinforcedGlass, "Reinforced Glass");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 0), "Adamantine");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 1), "Amethyst Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 2), "Iridium Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 3), "Mithril Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 4), "Tourmaline Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 5), "Topaz Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 6), "Verdite Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 7), "Bloodstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 8), "Black Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 9), "Blue Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 10), "Red Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockOres, 1, 11), "Agate Ore");
{
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 0), "Adamantine");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 1), "Amethyst Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 2), "Iridium Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 3), "Mithril Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 4), "Tourmaline Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 5), "Topaz Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 6), "Verdite Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 7), "Bloodstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 8), "Black Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 9), "Blue Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 10), "Red Soulstone");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 11), "Agate Ore");
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.BlockBase, 1, 12), "Reinforced Glass");
LanguageRegistry.instance().addName(new ItemStack(ItemHandler.Resource, 1, 0), "Verdite Ingot");
LanguageRegistry.instance().addName(new ItemStack(ItemHandler.Resource, 1, 1), "Mithril Ingot");

View file

@ -4,9 +4,8 @@ import java.io.File;
import java.util.Random;
import MysticOres.Blocks.BlockHandler;
import MysticOres.Blocks.BlockOres;
import MysticOres.Blocks.BlockReinforcedGlass;
import MysticOres.Blocks.ItemBlockOres;
import MysticOres.Blocks.BlockBase;
import MysticOres.Blocks.ItemBlockBase;
import MysticOres.Items.IridiumFuelHandler;
import MysticOres.Items.ItemAxes;
import MysticOres.Items.ItemHandler;
@ -25,7 +24,6 @@ import MysticOres.Worldgen.WorldGenMysticNetherMinable;
import MysticOres.Worldgen.WorldGenTopaz;
import MysticOres.Worldgen.WorldGenTourmaline;
import MysticOres.Worldgen.WorldGenVerdite;
import net.minecraft.block.Block;
import net.minecraft.block.BlockGrass;
import net.minecraft.block.BlockLeaves;
@ -43,6 +41,7 @@ import net.minecraftforge.common.ForgeVersion;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Loader;
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;
@ -64,16 +63,11 @@ public class MysticOres
{
public static CreativeTabs MysticOresTab = new TabMysticOres(CreativeTabs.getNextID(), "MysticOresTab");
@PreInit
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
ConfigurationManager.initialize(new File(event.getModConfigurationDirectory(), "Mystic Mods/Mystic Ores.cfg"));
ConfigurationManager.save();
}
@Init
public void load(FMLInitializationEvent event)
{
BlockHandler.init();
ItemHandler.init();
GameRegistry.registerFuelHandler(new IridiumFuelHandler());
@ -82,10 +76,4 @@ public class MysticOres
WorldGenHandler.init();
LanguageManager.init();
}
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
ThaumcraftAPIManager.init();
}
}

View file

@ -19,16 +19,16 @@ public class OreDictManager
OreDictionary.registerOre("gemAmethyst", new ItemStack(ItemHandler.Resource, 1, 8));
OreDictionary.registerOre("gemAgate", new ItemStack(ItemHandler.Resource, 1, 6));
OreDictionary.registerOre("oreAdamantine", new ItemStack(BlockHandler.BlockOres, 1, 0));
OreDictionary.registerOre("oreAmethyst", new ItemStack(BlockHandler.BlockOres, 1, 1));
OreDictionary.registerOre("oreIridium", new ItemStack(BlockHandler.BlockOres, 1, 2));
OreDictionary.registerOre("oreMithril", new ItemStack(BlockHandler.BlockOres, 1, 3));
OreDictionary.registerOre("oreSapphire", new ItemStack(BlockHandler.BlockOres, 1, 4));
OreDictionary.registerOre("oreTopaz", new ItemStack(BlockHandler.BlockOres, 1, 5));
OreDictionary.registerOre("oreVerdite", new ItemStack(BlockHandler.BlockOres, 1, 6));
OreDictionary.registerOre("oreBloodstone", new ItemStack(BlockHandler.BlockOres, 1, 7));
OreDictionary.registerOre("oreBlackSoulstone", new ItemStack(BlockHandler.BlockOres, 1, 8));
OreDictionary.registerOre("oreRedSoulstone", new ItemStack(BlockHandler.BlockOres, 1, 9));
OreDictionary.registerOre("oreBlueSoulstone", new ItemStack(BlockHandler.BlockOres, 1, 10));
OreDictionary.registerOre("oreAdamantine", new ItemStack(BlockHandler.BlockBase, 1, 0));
OreDictionary.registerOre("oreAmethyst", new ItemStack(BlockHandler.BlockBase, 1, 1));
OreDictionary.registerOre("oreIridium", new ItemStack(BlockHandler.BlockBase, 1, 2));
OreDictionary.registerOre("oreMithril", new ItemStack(BlockHandler.BlockBase, 1, 3));
OreDictionary.registerOre("oreSapphire", new ItemStack(BlockHandler.BlockBase, 1, 4));
OreDictionary.registerOre("oreTopaz", new ItemStack(BlockHandler.BlockBase, 1, 5));
OreDictionary.registerOre("oreVerdite", new ItemStack(BlockHandler.BlockBase, 1, 6));
OreDictionary.registerOre("oreBloodstone", new ItemStack(BlockHandler.BlockBase, 1, 7));
OreDictionary.registerOre("oreBlackSoulstone", new ItemStack(BlockHandler.BlockBase, 1, 8));
OreDictionary.registerOre("oreBlueSoulstone", new ItemStack(BlockHandler.BlockBase, 1, 9));
OreDictionary.registerOre("oreRedSoulstone", new ItemStack(BlockHandler.BlockBase, 1, 10));
}
}

View file

@ -33,43 +33,43 @@ public class RecipeManager
}
private static void blockRecipes(){
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockOres, 8, 7), new Object[] {
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), new Object[] {
"XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), new ItemStack(ItemHandler.Resource, 1, 6)
});
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockOres, 16, 7), new Object[] {
"XXX", "XOX", "XXX", Character.valueOf('X'), new ItemStack(BlockHandler.BlockOres, 1, 3), Character.valueOf('O'), new ItemStack(ItemHandler.Resource, 1, 6)
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), new Object[] {
"XXX", "XOX", "XXX", Character.valueOf('X'), new ItemStack(BlockHandler.BlockBase, 1, 3), Character.valueOf('O'), new ItemStack(ItemHandler.Resource, 1, 6)
});
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockOres, 8, 3), new Object[] {
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), new Object[] {
"XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), new ItemStack(ItemHandler.Resource, 1, 8)
});
GameRegistry.addRecipe(new ItemStack(BlockHandler.ReinforcedGlass, 8), new Object[] {
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockBase, 8, 12), new Object[] {
"###", "#D#", "###", '#', new ItemStack(ItemHandler.Resource, 1, 11), 'D', new ItemStack(ItemHandler.Resource, 1, 12)
});
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockOres, 1, 7), new Object[] {
GameRegistry.addRecipe(new ItemStack(BlockHandler.BlockBase, 1, 7), new Object[] {
"##", "##", '#', new ItemStack(ItemHandler.Resource, 1, 10)
});
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockOres, 2, 7), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockOres, 1, 7)
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockBase, 2, 7), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockBase, 1, 7)
});
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockOres, 2, 3), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockOres, 1, 3)
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockBase, 2, 3), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockBase, 1, 3)
});
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockOres, 2, 0), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockOres, 1, 0)
GameRegistry.addShapelessRecipe(new ItemStack(BlockHandler.BlockBase, 2, 0), new Object[] {
new ItemStack(ItemHandler.Resource, 1, 9), new ItemStack(BlockHandler.BlockBase, 1, 0)
});
}
private static void blockSmelting(){
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockOres.blockID, 0, new ItemStack(ItemHandler.Resource, 1, 2), 0.9F);
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockOres.blockID, 3, new ItemStack(ItemHandler.Resource, 1, 1), 0.7F);
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockOres.blockID, 6, new ItemStack(ItemHandler.Resource, 1, 0), 0.4F);
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 0, new ItemStack(ItemHandler.Resource, 1, 2), 0.9F);
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 3, new ItemStack(ItemHandler.Resource, 1, 1), 0.7F);
FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 6, new ItemStack(ItemHandler.Resource, 1, 0), 0.4F);
}
private static void itemRecipes(){
@ -94,7 +94,7 @@ public class RecipeManager
});
GameRegistry.addShapelessRecipe(new ItemStack(ItemHandler.Resource, 2, 10), new Object[] {
new ItemStack(BlockHandler.BlockOres, 1, 7)
new ItemStack(BlockHandler.BlockBase, 1, 7)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.VerditePickaxe, 1), new Object[] {
@ -238,31 +238,31 @@ public class RecipeManager
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstonePickaxe, 1), new Object[] {
"###", " S ", " S ", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"###", " S ", " S ", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneSword, 1), new Object[] {
"#", "#", "S", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"#", "#", "S", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneShovel, 1), new Object[] {
"#", "S", "S", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"#", "S", "S", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneAxe, 1), new Object[] {
"## ", "#S ", " S ", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"## ", "#S ", " S ", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneAxe, 1), new Object[] {
"## ", "S# ", "S ", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"## ", "S# ", "S ", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneHoe, 1), new Object[] {
"## ", " S ", " S ", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"## ", " S ", " S ", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.BloodstoneHoe, 1), new Object[] {
"## ", "S ", "S ", '#', new ItemStack(BlockHandler.BlockOres, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
"## ", "S ", "S ", '#', new ItemStack(BlockHandler.BlockBase, 1, 7), 'S', new ItemStack(ItemHandler.Resource, 1, 13)
});
GameRegistry.addRecipe(new ItemStack(ItemHandler.Satchel, 1), new Object[] {

View file

@ -13,7 +13,7 @@ public class TabMysticOres extends CreativeTabs {
@Override
public ItemStack getIconItemStack() {
return new ItemStack(BlockHandler.BlockOres, 1, 7);
return new ItemStack(BlockHandler.BlockBase, 1, 7);
}
}

View file

@ -1,37 +0,0 @@
package MysticOres;
import MysticOres.Blocks.BlockHandler;
import MysticOres.Items.ItemHandler;
import thaumcraft.api.EnumTag;
import thaumcraft.api.ObjectTags;
import thaumcraft.api.ThaumcraftApi;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameRegistry;
public class ThaumcraftAPIManager
{
public static void init()
{
if(Loader.isModLoaded("Thaumcraft") == true)
{
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 2, (new ObjectTags()).add(EnumTag.METAL, 10).add(EnumTag.VALUABLE, 4));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 1, (new ObjectTags()).add(EnumTag.METAL, 8).add(EnumTag.MAGIC, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 0, (new ObjectTags()).add(EnumTag.METAL, 8).add(EnumTag.PLANT, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 3, (new ObjectTags()).add(EnumTag.METAL, 16).add(EnumTag.VALUABLE, 8));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 8, (new ObjectTags()).add(EnumTag.MAGIC, 4).add(EnumTag.VALUABLE, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 5, (new ObjectTags()).add(EnumTag.MAGIC, 4).add(EnumTag.VALUABLE, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 7, (new ObjectTags()).add(EnumTag.MAGIC, 4).add(EnumTag.VALUABLE, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 6, (new ObjectTags()).add(EnumTag.MAGIC, 4).add(EnumTag.VALUABLE, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 9, (new ObjectTags()).add(EnumTag.MAGIC, 4).add(EnumTag.VALUABLE, 2)
.add(EnumTag.EXCHANGE, 9));
ThaumcraftApi.registerObjectTag(BlockHandler.ReinforcedGlass.blockID, 0, (new ObjectTags()).add(EnumTag.CRYSTAL, 4).add(EnumTag.ROCK, 2));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 4, (new ObjectTags()).add(EnumTag.POISON, 2).add(EnumTag.FIRE, 1).add(EnumTag.MAGIC, 4)
.add(EnumTag.POWER, 6));
ThaumcraftApi.registerObjectTag(ItemHandler.Resource.itemID, 10, (new ObjectTags()).add(EnumTag.CRYSTAL, 1).add(EnumTag.DARK, 1));
ThaumcraftApi.registerObjectTag(BlockHandler.BlockOres.blockID, 7, (new ObjectTags()).add(EnumTag.DARK, 4).add(EnumTag.EVIL, 2));
System.out.println("[Mystic Ores] Thaumcraft Integration Initialized Successfully!");
}
}
}

View file

@ -28,7 +28,7 @@ public class WorldGenAdamantine implements IWorldGenerator {
int Ycoord = random.nextInt(16);
int Zcoord = blockZ + random.nextInt(8);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 0, 3)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 0, 3)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -29,7 +29,7 @@ public class WorldGenAgate implements IWorldGenerator
int Ycoord = random.nextInt(60);
int Zcoord = blockZ + random.nextInt(32);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 11, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 11, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -30,7 +30,7 @@ public class WorldGenAmethyst implements IWorldGenerator {
int Ycoord = random.nextInt(60);
int Zcoord = blockZ + random.nextInt(24);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 1, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 1, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -16,9 +16,9 @@ public class WorldGenHandler
GameRegistry.registerWorldGenerator(new WorldGenAmethyst());
GameRegistry.registerWorldGenerator(new WorldGenAdamantine());
GameRegistry.registerWorldGenerator(new WorldGenAgate());
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockOres.blockID, 7, 1));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockOres.blockID, 8, 3));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockOres.blockID, 9, 2));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockOres.blockID, 10, 3));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockBase.blockID, 7, 1));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockBase.blockID, 8, 3));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockBase.blockID, 9, 2));
GameRegistry.registerWorldGenerator(new WorldGenMysticNetherMinable(BlockHandler.BlockBase.blockID, 10, 3));
}
}

View file

@ -30,7 +30,7 @@ public class WorldGenIridium implements IWorldGenerator {
int Ycoord = random.nextInt(12);
int Zcoord = blockZ + random.nextInt(16);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 2, 6, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 2, 6, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -29,7 +29,7 @@ public class WorldGenMithril implements IWorldGenerator {
int Ycoord = random.nextInt(64);
int Zcoord = blockZ + random.nextInt(16);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 3, 6, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 3, 6, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -29,7 +29,7 @@ public class WorldGenTopaz implements IWorldGenerator {
int Ycoord = random.nextInt(60);
int Zcoord = blockZ + random.nextInt(16);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 5, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 5, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -27,7 +27,7 @@ public class WorldGenTourmaline implements IWorldGenerator {
int Ycoord = random.nextInt(60);
int Zcoord = blockZ + random.nextInt(32);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 4, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 4, 4, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}

View file

@ -30,7 +30,7 @@ public class WorldGenVerdite implements IWorldGenerator {
int Ycoord = random.nextInt(30) + 70;
int Zcoord = blockZ + random.nextInt(16);
(new WorldGenMinable(BlockHandler.BlockOres.blockID, 6, 9, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
(new WorldGenMinable(BlockHandler.BlockBase.blockID, 6, 9, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}