/** * Author: Orthus * Date: 9/29/13 */ import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import items.*; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraftforge.common.EnumHelper; import blocks.*; @Mod(modid = "divine_equipment", name = "Divine Equipment",version = "V0.5") @NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = { "DEquipment" }) public class Divine_Equipment { public static final String modid = "divine_equipment"; public static Block taintedstone; @Instance("Divine_Equipment") public static Divine_Equipment INSTANCE; // @SidedProxy(clientSide = "divine_equipment.client.ClientProxy", serverSide = "divine_equipment.common.CommonProxy") // public static CommonProxy proxy; public static String imageFolder = "resources/textures"; // Init all new Tool materials // Init All Tainted materials EnumToolMaterial TaintedDiamond; EnumToolMaterial TaintedGold; EnumToolMaterial TaintedIron = EnumHelper.addToolMaterial("Tainted Iron", 2, 75, 6.0F, 3, 19); EnumToolMaterial TaintedStone; EnumToolMaterial TaintedWood; // Init All Blessed materials EnumToolMaterial BlessedDiamond; EnumToolMaterial BlessedGold; EnumToolMaterial BlessedIron; EnumToolMaterial BlessedStone; EnumToolMaterial BlessedWood; // Init All Ender Infused Materials // Will be added after version 1.0 @Mod.EventHandler public void preInit(FMLPreInitializationEvent event){ taintedstone = new TaintedRock(2550, Material.rock).setUnlocalizedName("Tainted Stone").setTextureName("divine_equipment:TaintedStone"); GameRegistry.registerBlock(taintedstone, modid+ taintedstone.getUnlocalizedName().substring(5)); LanguageRegistry.addName(taintedstone, "Tainted Stone"); // Tainted Tool Material Properties (Subject to Change) // Name, Harvest Level, Uses, Dig Speed, Damage, Enchantablity /* Default Values WOOD(0, 59, 2.0F, 0, 15), STONE(1, 131, 4.0F, 1, 5), IRON(2, 250, 6.0F, 2, 14), EMERALD(3, 1561, 8.0F, 3, 10), GOLD(0, 32, 12.0F, 0, 22); */ TaintedDiamond = EnumHelper.addToolMaterial("Tainted Diamond", 3, 1003, 8.0F, 4, 15); TaintedGold = EnumHelper.addToolMaterial("Tainted Gold", 2, 20, 12.0F, 0, 27); TaintedStone = EnumHelper.addToolMaterial("Tainted Stone", 1, 88, 4.0F, 0, 10 ); TaintedWood = EnumHelper.addToolMaterial("Tainted Wood", 0, 40, 2.0F, 0, 20); // Blessed tool Material Properties (Subject to Change) BlessedDiamond = EnumHelper.addToolMaterial("Blessed Diamond", 3, 2029, 10.0F, 3, 10); BlessedGold = EnumHelper.addToolMaterial("Blessed Gold", 2, 32, 14.00F, 0, 22); BlessedIron = EnumHelper.addToolMaterial("Blessed Iron", 2, 250, 8.0F, 2, 14); BlessedStone = EnumHelper.addToolMaterial("Blessed Stone", 1, 131, 6.0F, 1, 5); BlessedWood = EnumHelper.addToolMaterial("Blessed Wood", 0, 59, 4.0F, 0, 15); //Telling forge that we are creating stuff // Tainted Swords Item TaintedDiamondSword;{ //Create Item + Picture TaintedDiamondSword = new TaintedDiamondSword(2560, TaintedDiamond).setUnlocalizedName("Tainted_Sword_Diamond").setTextureName("divine_equipment:Tainted_Sword_Diamond"); LanguageRegistry.addName(TaintedDiamondSword, "Tainted Diamond Sword"); } Item TaintedGoldSword;{ TaintedGoldSword = new TaintedGoldSword(2561, TaintedGold).setUnlocalizedName("Tainted_Sword_Gold").setTextureName("divine_equipment:Tainted_Sword_Gold"); LanguageRegistry.addName(TaintedGoldSword, "Tainted Gold Sword"); } Item TaintedIronSword;{ TaintedIronSword = new TaintedIronSword(2562, TaintedIron).setUnlocalizedName("Tainted_Sword_Iron").setTextureName("divine_equipment:Tainted_Sword_Iron"); LanguageRegistry.addName(TaintedIronSword, "Tainted Iron Sword"); } Item TaintedStoneSword;{ TaintedStoneSword = new TaintedStoneSword(2563, TaintedStone).setUnlocalizedName("Tainted_Sword_Stone").setTextureName("divine_equipment:Tainted_Sword_Stone"); LanguageRegistry.addName(TaintedStoneSword, "Tainted Stone Sword"); } // Item TaintedWoodSword;{} // Blessed Swords Item BlessedDiamondSword;{ //Create Item + Picture BlessedDiamondSword = new BlessedDiamondSword(2555, BlessedDiamond).setUnlocalizedName("Blessed_Sword_Diamond").setTextureName("divine_equipment:Blessed_Sword_Diamond"); LanguageRegistry.addName(BlessedDiamondSword, "Blessed Diamond Sword"); } Item BlessedGoldSword;{ BlessedGoldSword = new BlessedGoldSword(2556, BlessedGold).setUnlocalizedName("Blessed_Sword_Gold").setTextureName("divine_equipment:Blessed_Sword_Gold"); LanguageRegistry.addName(BlessedGoldSword, "Blessed Gold Sword"); } Item BlessedIronSword;{ BlessedIronSword = new BlessedIronSword(2557, BlessedIron).setUnlocalizedName("Blessed_Sword_Iron").setTextureName("divine_equipment:Blessed_Sword_Iron"); LanguageRegistry.addName(BlessedIronSword, "Blessed Iron Sword"); } Item BlessedStoneSword;{ BlessedStoneSword = new BlessedStoneSword(2558, BlessedStone).setUnlocalizedName("Blessed_Sword_Stone").setTextureName("divine_equipment:Blessed_Sword_Stone"); LanguageRegistry.addName(BlessedStoneSword, "Blessed Stone Sword"); }}}