Guest User

Main

a guest
Feb 23rd, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package TheMod;
  2.  
  3. import Armors.TheModArmors;
  4. import Bows.EntityTitaniteArrow;
  5. import Bows.TheModTitaniteBow;
  6. import TheMod.Mytools.CustomSword;
  7. import TheMod.Mytools.ItemModAxe;
  8. import TheMod.Mytools.ItemModPickaxe;
  9. import TheMod.Mytools.ItemModSpade;
  10. import TheModFood.TheModItemFood;
  11. import TheModFood.TheModItemFoodShiny;
  12. import net.minecraft.item.Item;
  13. import net.minecraft.item.ItemArmor.ArmorMaterial;
  14. import net.minecraftforge.common.util.EnumHelper;
  15. import net.minecraftforge.fml.common.Mod;
  16. import net.minecraftforge.fml.common.Mod.EventHandler;
  17. import net.minecraftforge.fml.common.Mod.Instance;
  18. import net.minecraftforge.fml.common.SidedProxy;
  19. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  20. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  21. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  22. import net.minecraftforge.fml.common.registry.EntityRegistry;
  23.  
  24. @Mod(modid = Main.MODID, name = Main.MODNAME, version = Main.VERSION, dependencies = "required-after:FML")
  25. public class Main
  26. {
  27.     public static final String MODID = "tm";
  28.     public static final String MODNAME = "TheMod";
  29.     public static final String VERSION = "1.0";
  30.  
  31.     @Instance(value = MODID)
  32.     public static Main instance;
  33.    
  34.     @SidedProxy(modId=MODID, clientSide="TheMod.ClientProxy", serverSide="TheMod.ServerProxy")
  35.     public static CommonProxy proxy;
  36.    
  37.     public static CreaTabs tabTheMod = new CreaTabs("tabTheMod");
  38.  
  39.     public static CustomItem Obsidian_Stick;
  40.  
  41.     public static CustomItem Titanite_Arrow;
  42.     public static TheModTitaniteBow Titanite_Bow;
  43.     //Foods
  44.     public static CustomItem Flour;
  45.     public static TheModItemFood Toast;
  46.     public static TheModItemFoodShiny JadeApple;
  47.     public static TheModItemFoodShiny ObsidianApple;
  48.     public static TheModItemFoodShiny OpalApple;
  49.     //Tnt's
  50.     public static TNT Nuke;
  51.     //Armors
  52.     public static TheModArmors Opal_Helmet;
  53.     public static TheModArmors Opal_Chestplate;
  54.     public static TheModArmors Opal_Leggings;
  55.     public static TheModArmors Opal_Boots;
  56.    
  57.     public static TheModArmors Mythril_Helmet;
  58.     public static TheModArmors Mythril_Chestplate;
  59.     public static TheModArmors Mythril_Leggings;
  60.     public static TheModArmors Mythril_Boots;
  61.    
  62.     public static TheModArmors Titanite_Helmet;
  63.     public static TheModArmors Titanite_Chestplate;
  64.     public static TheModArmors Titanite_Leggings;
  65.     public static TheModArmors Titanite_Boots;
  66.    
  67.     public static TheModArmors Obsidian_Helmet;
  68.     public static TheModArmors Obsidian_Chestplate;
  69.     public static TheModArmors Obsidian_Leggings;
  70.     public static TheModArmors Obsidian_Boots;
  71.    
  72.     public static TheModArmors Jade_Helmet;
  73.     public static TheModArmors Jade_Chestplate;
  74.     public static TheModArmors Jade_Leggings;
  75.     public static TheModArmors Jade_Boots;
  76.    
  77.     //Swords
  78.     public static CustomSword Opal_Sword;
  79.     public static CustomSword Mythril_Sword;
  80.     public static CustomSword Titanite_Sword;
  81.     public static CustomSword Jade_Sword;
  82.     public static CustomSword Obsidian_Sword;
  83.     //Pickaxe
  84.     public static ItemModPickaxe Opal_Pickaxe;
  85.     public static ItemModPickaxe Mythril_Pickaxe;
  86.     public static ItemModPickaxe Titanite_Pickaxe;
  87.     public static ItemModPickaxe Jade_Pickaxe;
  88.     public static ItemModPickaxe Obsidian_Pickaxe; 
  89.     //Axe
  90.     public static ItemModAxe Opal_Axe;
  91.     public static ItemModAxe Mythril_Axe;
  92.     public static ItemModAxe Titanite_Axe;
  93.     public static ItemModAxe Jade_Axe;
  94.     public static ItemModAxe Obsidian_Axe;
  95.     //Spade
  96.     public static ItemModSpade Opal_Spade;
  97.     public static ItemModSpade Mythril_Spade;
  98.     public static ItemModSpade Titanite_Spade;
  99.     public static ItemModSpade Jade_Spade;
  100.     public static ItemModSpade Obsidian_Spade;
  101.     //Ores
  102.     public static CustomBlock Mythril_Ore;
  103.     public static CustomBlock Opal_Ore;
  104.     public static CustomBlock Jade_Ore;
  105.     public static CustomBlock Titanite_Ore;
  106.     //Ingots And Gems
  107.     public static CustomItem Mythril_Ingot;
  108.     public static CustomItemShiny Opal;
  109.     public static CustomItem Jade;
  110.     public static CustomItem Titanite_Ingot;
  111.     public static CustomItem Obsidian_Ingot;
  112.     public static CustomItem Obsidian_Plate;
  113.     //Blocks
  114.     public static CustomBlock Obsidian_Block;
  115.     public static CustomBlock Opal_Block;
  116.     public static CustomBlock Jade_Block;
  117.     public static CustomBlock Mythril_Block;
  118.     public static CustomBlock Titanite_Block;
  119.     public static CustomBlock Obsidian_Fake;
  120.  
  121.     //SwordMaterial = ( HarvestLevel, Durability, Efficiency, DamageVsEntity, Enchantability);
  122.     public static Item.ToolMaterial OPAL = EnumHelper.addToolMaterial("OPAL", 3, 2000, 20.0F, 4.5F, 2);
  123.     public static Item.ToolMaterial MYTHRIL = EnumHelper.addToolMaterial("MYTHRIL", 3, 1650, 11.0F, 3.5F, 6);
  124.     public static Item.ToolMaterial JADE = EnumHelper.addToolMaterial("JADE", 3, 1125, 14.0F, 2.0F, 20);
  125.     public static Item.ToolMaterial TITANITE = EnumHelper.addToolMaterial("TITANITE", 3, 1553, 10.0F, 4.0F, 6);
  126.     public static Item.ToolMaterial OBSIDIAN = EnumHelper.addToolMaterial("OBSIDIAN", 3, 2600, 9.0F, 3.0F, 15);
  127.    
  128.     public static ArmorMaterial OPAL1 = EnumHelper.addArmorMaterial("OPAL1", "tm:Opal", 64, new int[]{4, 8, 7, 4}, 2);//23
  129.     public static ArmorMaterial MYTHRIL1 = EnumHelper.addArmorMaterial("MYTHRIL1", "tm:Mythril", 48, new int[]{4, 8, 7, 3}, 8);//22
  130.     public static ArmorMaterial JADE1 = EnumHelper.addArmorMaterial("JADE1", "tm:Jade", 33, new int[]{3, 6, 6, 3}, 20);//18
  131.     public static ArmorMaterial TITANITE1 = EnumHelper.addArmorMaterial("TITANITE1", "tm:Titanite", 44, new int[]{4, 7, 6, 4}, 10);//21
  132.     public static ArmorMaterial OBSIDIAN1 = EnumHelper.addArmorMaterial("OBSIDIAN1", "tm:Obsidian", 72, new int[]{3, 8, 6, 3}, 15);//20
  133.  
  134.  
  135.     @EventHandler
  136.     public void preInit(FMLPreInitializationEvent e) {
  137.         proxy.preInit(e);
  138.  
  139.     }
  140.     @EventHandler
  141.     public void init(FMLInitializationEvent e) {
  142.         proxy.init(e);
  143.         EntityRegistry.registerModEntity(EntityNukePrimed.class, "Nuke", 3601, this.instance, 256, 1, false);
  144.         EntityRegistry.registerModEntity(EntityTitaniteArrow.class, "entityTitaniteArrow", 3602, this.instance, 256, 1, false);
  145.  
  146.     }
  147.     @EventHandler
  148.     public void postInit(FMLPostInitializationEvent e)
  149.     {
  150.         proxy.postInit(e);
  151.         System.out.println("----------- Done loading TheMod -----------");  }
  152.     }
RAW Paste Data