Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package infinicraft.main;
- import infinicraft.armor.MyArmor;
- import infinicraft.armor.MyArmor_2;
- import infinicraft.armor.MyArmor_3;
- import infinicraft.armor.MyArmor_4;
- import infinicraft.armor.MyArmor_5;
- import infinicraft.armor.MyArmor_6;
- import infinicraft.armor.orcanArmor;
- import infinicraft.biome.MyBiome_1;
- import infinicraft.biome.NioBiome;
- import infinicraft.blocks.MyBlock;
- import infinicraft.blocks.MyBlockGen;
- import infinicraft.blocks.MyBlockGenRuby;
- import infinicraft.blocks.MyBlock_2;
- import infinicraft.blocks.nioGrass;
- import infinicraft.blocks.orcanBlock;
- import infinicraft.blocks.orcanBlockGen;
- import infinicraft.entity.BeardedDragon.EntityBeardedDragon;
- import infinicraft.entity.EntityRifleBolt.EntityRifleBolt;
- import infinicraft.entity.ape.MyEntityApe;
- import infinicraft.entity.ogre.MyEntityOgre;
- import infinicraft.items.MyAxe;
- import infinicraft.items.MyFood;
- import infinicraft.items.MyItem;
- import infinicraft.items.MyPickaxe;
- import infinicraft.items.MyShovel;
- import infinicraft.items.MySword;
- import infinicraft.proxies.CommonProxy;
- import java.awt.Color;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.Minecraft;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityList;
- import net.minecraft.entity.EntityList.EntityEggInfo;
- import net.minecraft.entity.EnumCreatureType;
- import net.minecraft.init.Blocks;
- import net.minecraft.init.Items;
- import net.minecraft.item.Item;
- import net.minecraft.item.Item.ToolMaterial;
- import net.minecraft.item.ItemArmor.ArmorMaterial;
- import net.minecraft.item.ItemStack;
- import net.minecraft.stats.Achievement;
- import net.minecraft.stats.AchievementList;
- import net.minecraft.world.biome.BiomeGenBase;
- import net.minecraftforge.common.AchievementPage;
- import net.minecraftforge.common.BiomeManager;
- import net.minecraftforge.common.BiomeManager.BiomeEntry;
- import net.minecraftforge.common.BiomeManager.BiomeType;
- import net.minecraftforge.common.util.EnumHelper;
- import net.minecraftforge.oredict.OreDictionary;
- import net.minecraftforge.oredict.ShapedOreRecipe;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.EventHandler;
- import cpw.mods.fml.common.Mod.Instance;
- import cpw.mods.fml.common.SidedProxy;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPostInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.registry.EntityRegistry;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- import cpw.mods.fml.relauncher.Side;
- /* MOD INFO */
- @Mod(modid = infinicraft.main.Main.MODID, version = Main.VERSION)
- public class Main {
- /* PROXY INFO */
- @SidedProxy(clientSide="infinicraft.proxies.ClientProxy", serverSide="infinicraft.proxies.CommonProxy")
- public static CommonProxy proxy;
- /**
- * DECLARATION SECTION
- * *********************************************************** */
- public static final String MODID = "InfiniCraft";
- public static final String VERSION = "1.3.2";
- public static Block MyBlock_1 = (Block)Block.blockRegistry.getObject("MyBlock_1");
- public static Block MyBlock_2 = (Block)Block.blockRegistry.getObject("MyBlock_2");
- public static Block MyBlock_3 = (Block)Block.blockRegistry.getObject("MyBlock_3");
- public static Block nioGrass = (Block)Block.blockRegistry.getObject("nioGrass");
- public static Block orcanBlock = (Block)Block.blockRegistry.getObject("orcanBlock");
- public static final BiomeGenBase.Height height_Nio = new BiomeGenBase.Height(0.9F, 1.3F);
- public static BiomeGenBase MyBiome_1;
- public static BiomeGenBase NioBiome;
- public static Item pulseRifle;
- public static Item pulseAmmo;
- public static Item pulseBullet;
- public static Item fireStaff;
- public static Item lightningStaff;
- public static Item orcanAxe;
- public static Item orcanShovel;
- public static Item orcanPickaxe;
- public static Item orcanIngot;
- public static Item orcanSword;
- public static Item MyArmor_1;
- public static Item MyAxe_4;
- public static Item MyAxe_6;
- public static Item MyItem_6;
- public static Item MySword_2;
- public static Item MySword_7;
- public static Item MySword_1;
- public static Item MyPickaxe_1;
- public static Item MyShovel6;
- public static Item MyShovel7;
- public static Item MyPickaxe_3;
- public static Item MyPickaxe_2;
- public static Item MyAxe_3;
- public static Item MyAxe;
- public static Item MySword_6;
- public static Item MySword_5;
- public static Item MyItem_4;
- public static Item MyAxe_5;
- public static Item MyItem_1;
- public static Item MyItem_2;
- public static Item MySword_8;
- public static Item MyItem_3;
- public static Item MyFood_1;
- public static Item MyFood_2;
- public static Item orcanHelmet;
- public static Item orcanChestplate;
- public static Item orcanLeggings;
- public static Item orcanBoots;
- public static Item MyHelmet_1;
- public static Item MyChest_1;
- public static Item MyLeggings_1;
- public static Item MyBoots_1;
- public static Item MyHelmet_6;
- public static Item MyChest_6;
- public static Item MyLeggings_6;
- public static Item MyBoots_6;
- public static Item MyHelmet_2;
- public static Item MyChest_2;
- public static Item MyLeggings_2;
- public static Item MyBoots_2;
- public static Item MyHelmet_3;
- public static Item MyChest_3;
- public static Item MyLeggings_3;
- public static Item MyBoots_3;
- public static Item MyHelmet_4;
- public static Item MyChest_4;
- public static Item MyLeggings_4;
- public static Item MyBoots_4;
- public static Item MyHelmet_5;
- public static Item MyChest_5;
- public static Item MyLeggings_5;
- public static Item MyBoots_5;
- public static Item MyEnderStaff;
- public static Item MyItem_5;
- public static Item MySword_4;
- public static Item MyShovel2;
- public static Item MyShovel5;
- public static Item MyShovel;
- public static Item MyAxe2;
- public static Item MyShovel3;
- public static Item rubyPickaxe;
- public static Item MyFood_3;
- public static Item MySword_3;
- public static Item MyShovel4;
- public static Item MyPickaxe_5;
- public static Item MyPickaxe_6;
- public static Achievement MyAchievement_1;
- public static Achievement MyAchievement_2;
- public static Achievement MyAchievement_3;
- public static CreativeTabs infinicraftMain;
- public static CreativeTabs infinicraftTech;
- public static CreativeTabs infinicraftMagic;
- int modEntityID = 0;
- static int MyEntityID = 300;
- public static int getUniqueEntityId() {
- do {
- MyEntityID++;
- }
- while (EntityList.getStringFromID(MyEntityID) != null);
- return MyEntityID++;
- }
- public static void registerEntityEgg(Class <? extends Entity> entity, int PrimaryColor, int secondaryColor) {
- int id = getUniqueEntityId();
- EntityList.IDtoClassMapping.put(id, entity);
- EntityList.entityEggs.put(id, new EntityEggInfo(id, PrimaryColor, secondaryColor));
- }
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial = EnumHelper.addToolMaterial("Sapphire", 3, 768, 5.0F, 7.0F, 15);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial5 = EnumHelper.addToolMaterial("Ruby", 3, 768, 5.0F, 7.0F, 15);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial2 = EnumHelper.addToolMaterial("Mega Stone", 3, 5000, 150.0F, 500.0F, 12);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial orcanToolMaterial = EnumHelper.addToolMaterial("Orcan", 2, 325, 6.0F, 4.0F, 7);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial6 = EnumHelper.addToolMaterial("Night Shard", 3, 500, 150.0F, 36.0F, 21);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial10 = EnumHelper.addToolMaterial("Take em'", 3, 750, 15.0F, 4.0F, 21);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial7 = EnumHelper.addToolMaterial("netherrack", 2, 158, 10.0F, 1.0F, 6);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/
- public static ToolMaterial MyToolMaterial4 = EnumHelper.addToolMaterial("Ruby", 1, 136, 8.0F,2.0F, 15);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability*/
- public static ToolMaterial MyToolMaterial9 = EnumHelper.addToolMaterial("End", 2, 854, 12.0F,2.5F, 18);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial3 = EnumHelper.addToolMaterial("GlowStone", 1, 136, 8.0F, 2.0F, 15);
- /** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- public static ToolMaterial MyToolMaterial8 = EnumHelper.addToolMaterial("NOPE", 3, 9999, 500.0F, 46.0F, 15);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_1 = EnumHelper.addArmorMaterial("Sapphire", 75, new int[]{2, 6, 6, 2}, 10);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_2 = EnumHelper.addArmorMaterial("Mega Stone", 5000, new int[]{25, 30, 30, 25}, 100);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_6 = EnumHelper.addArmorMaterial("End", 25, new int[]{3, 6, 5, 4}, 14);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_3 = EnumHelper.addArmorMaterial("GlowStone Shard", 50, new int[]{2, 3, 3, 2}, 30);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_4 = EnumHelper.addArmorMaterial("Ruby", 75, new int[]{2, 6, 6, 2}, 10);
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial MyArmorMaterial_5 = EnumHelper.addArmorMaterial("netherrack", 8, new int[]{1, 4, 3, 1}, 15);/** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
- /** maxDamageFactor, damageReductionAmountArray, enchantability*/
- public static ArmorMaterial orcanArmorMaterial = EnumHelper.addArmorMaterial("orcan", 100, new int[]{3, 8, 7, 3}, 10);public static ToolMaterial PulseBowToolMaterial = EnumHelper.addToolMaterial("Pulse Bow Material", 3, 9999, 500.0F, 10.0F, 15);
- /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
- @EventHandler
- public void preInit( FMLPreInitializationEvent event)
- {
- EntityRegistry.registerModEntity(EntityRifleBolt.class, "rifleBolt", 4, this, 128, 1, true);
- MyBiome_1 = new MyBiome_1(100);
- BiomeManager.addBiome(BiomeType.DESERT, new BiomeEntry(MyBiome_1, 10));
- NioBiome = new NioBiome(101);
- BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(NioBiome, 10));
- }
- /**
- * OreDictionary
- */
- @Instance(value="InfiniCraft")
- public static infinicraft.main.Main instance;
- @EventHandler
- //1.3.2 @Init
- public void load(FMLInitializationEvent event)
- {
- addNames();
- oreRegistration();
- addOreRecipes();
- }
- public static void addNames()
- {
- LanguageRegistry.addName(MyItem_1, "Sapphire");
- LanguageRegistry.addName(MyItem_3, "Ruby");
- LanguageRegistry.addName(MyBlock_3, "Ruby Ore");
- LanguageRegistry.addName(MyBlock_1, "Sapphire Ore");
- }
- public static void oreRegistration()
- {
- OreDictionary.registerOre("gemSapphire", MyItem_1);
- OreDictionary.registerOre("oreSapphire", MyBlock_1);
- OreDictionary.registerOre("oreRuby", MyBlock_3);
- OreDictionary.registerOre("gemRuby", MyItem_3);
- }
- public static void addOreRecipes()
- {
- GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_4, true, new Object[]{
- "FFF",
- "F F", Character.valueOf('F'), "gemRuby"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_4, true, new Object[]{
- "F F",
- "FFF",
- "FFF", Character.valueOf('F'), "gemRuby"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_4, true, new Object[]{
- "FFF",
- "F F",
- "F F",Character.valueOf('F'), "gemRuby"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_4, true, new Object[]{
- "F F",
- "F F",Character.valueOf('F'), "gemRuby"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyHelmet_1, true, new Object[]{
- "FFF",
- "F F", Character.valueOf('F'), "gemSapphire"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyChest_1, true, new Object[]{
- "F F",
- "FFF",
- "FFF",Character.valueOf('F'), "gemSapphire"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyLeggings_1, true, new Object[]{
- "FFF",
- "F F",
- "F F",Character.valueOf('F'), "gemSapphire"}));
- GameRegistry.addRecipe(new ShapedOreRecipe(MyBoots_1, true, new Object[]{
- "F F",
- "F F",Character.valueOf('F'), "gemSapphire"}));
- }
- {
- /**
- * LOAD SECTION
- * *********************************************************** */
- // LOAD THE CREATIVE TAB
- infinicraftMain = new CreativeTabs("infinicraftMain") {
- public ItemStack getIconItemStack() {
- return new ItemStack(MyBlock_1, 1, 0); // Icon, Stack Size, Tab Position
- }
- @Override
- public Item getTabIconItem() {
- return null;
- }
- };
- // LOAD THE CREATIVE TAB
- infinicraftTech = new CreativeTabs("infinicraftTech") {
- public ItemStack getIconItemStack() {
- return new ItemStack(pulseRifle, 1, 1); // Icon, Stack Size, Tab Position
- }
- @Override
- public Item getTabIconItem() {
- return null;
- }
- };
- // LOAD THE CREATIVE TAB
- infinicraftMagic = new CreativeTabs("infinicraftMagic") {
- public ItemStack getIconItemStack() {
- return new ItemStack(lightningStaff, 1, 2); // Icon, Stack Size, Tab Position
- }
- @Override
- public Item getTabIconItem() {
- return null;
- }
- };
- // LOAD THE BOW
- pulseRifle = new infinicraft.items.pulseRifle(0, "pulseRifle").setCreativeTab(infinicraftTech).setMaxStackSize(1).setTextureName("pulseRifle.png");
- GameRegistry.registerItem(pulseRifle, "pulseRifle");
- LanguageRegistry.addName(pulseRifle, "Pulse Rifle");
- // LOAD THE BOW
- pulseAmmo = new infinicraft.items.MyItem(0, "pulseAmmo").setCreativeTab(infinicraftTech).setMaxStackSize(16).setTextureName("pulseAmmo.png");
- GameRegistry.registerItem(pulseAmmo, "pulseAmmo");
- LanguageRegistry.addName(pulseAmmo, "Pulse Ammo");
- // LOAD THE BOW
- pulseBullet = new infinicraft.items.MyItem(0, "pulseBullet").setCreativeTab(infinicraftTech).setMaxStackSize(16).setTextureName("pulseBullet.png");
- GameRegistry.registerItem(pulseBullet, "pulseBullet");
- LanguageRegistry.addName(pulseBullet, "Pulse Bullet");
- // LOAD THE PICKAXE 4
- rubyPickaxe = new MyPickaxe( 0, MyToolMaterial5, "rubyPickaxe").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(rubyPickaxe, "rubyPickaxe");
- LanguageRegistry.addName(rubyPickaxe, "Ruby Pickaxe");
- // LOAD THE PICKAXE 6
- MyPickaxe_6 = new MyPickaxe( 0, MyToolMaterial9, "MyPickaxe_6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyPickaxe_6, "MyPickaxe_6");
- LanguageRegistry.addName(MyPickaxe_6, "Endstone Pickaxe");
- // LOAD THE PICKAXE 5
- MyPickaxe_5 = new MyPickaxe( 0, MyToolMaterial7, "MyPickaxe_5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyPickaxe_5, "MyPickaxe_5");
- LanguageRegistry.addName(MyPickaxe_5, "Netherrack Pickaxe");
- // LOAD THE SHOVEL 2
- MyShovel2 = new MyShovel( 0, MyToolMaterial, "MyShovel2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel2, "MyShovel2");
- LanguageRegistry.addName(MyShovel2, "Sapphire Shovel");
- // LOAD THE SHOVEL 2
- MyShovel5 = new MyShovel( 0, MyToolMaterial7, "MyShovel5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel5, "MyShovel5");
- LanguageRegistry.addName(MyShovel5, "Netherrack Shovel");
- // LOAD THE SHOVEL 4
- MyShovel4 = new MyShovel( 0, MyToolMaterial5, "MyShovel4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel4, "MyShovel4");
- LanguageRegistry.addName(MyShovel4, "Ruby Shovel");
- // LOAD THE SWORD 7
- MySword_7 = new MySword( 0, MyToolMaterial9, "MySword_7").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_7, "MySword_7");
- LanguageRegistry.addName(MySword_7, "Endstone Sword");
- // LOAD ORCAN PICKAXE
- orcanPickaxe = new MyPickaxe( 0, orcanToolMaterial, "orcanPickaxe").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanPickaxe, "orcanPickaxe");
- LanguageRegistry.addName(orcanPickaxe, "Orcan Pickaxe");
- // LOAD THE ITEM
- orcanIngot = new MyItem( 0, "orcanIngot").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(orcanIngot, "orcanIngot");
- LanguageRegistry.addName(orcanIngot, "Orcan Ingot");
- // LOAD THE BLOCK
- orcanBlock = new orcanBlock( 0, Material.rock, "orcanBlock").setLightLevel(0.1F).setResistance(7.0F).setHardness(2.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
- GameRegistry.registerBlock(orcanBlock, "orcanBlock");
- LanguageRegistry.addName(orcanBlock, "Orcan Block");
- // LOAD THE BLOCK
- nioGrass = new nioGrass( 0, Material.grass, "nioGrass").setLightLevel(0.3F).setResistance(2.0F).setHardness(1.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(infinicraftMain);
- GameRegistry.registerBlock(nioGrass, "nioGrass");
- LanguageRegistry.addName(nioGrass, "Nio Grass");
- // LOAD THE SWORD 7
- orcanSword = new MySword( 0, orcanToolMaterial, "orcanSword").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanSword, "orcanSword");
- LanguageRegistry.addName(orcanSword, "Orcan Sword");
- // LOAD THE SHOVEL 4
- orcanShovel = new MyShovel( 0, orcanToolMaterial, "orcanShovel").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanShovel, "orcanShovel");
- LanguageRegistry.addName(orcanShovel, "Orcan Shovel");
- // LOAD THE SHOVEL 4
- orcanAxe = new MyAxe( 0, orcanToolMaterial, "orcanAxe").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanAxe, "orcanAxe");
- LanguageRegistry.addName(orcanAxe, "Orcan Axe");
- orcanHelmet = new orcanArmor(0, orcanArmorMaterial, 0, 0, "orcanArmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanHelmet, "orcanHelmet");
- LanguageRegistry.addName(orcanHelmet, "Orcan Helmet");
- orcanChestplate = new orcanArmor(0, orcanArmorMaterial, 0, 1, "orcanArmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanChestplate, "orcanChestplate");
- LanguageRegistry.addName(orcanChestplate, "Orcan Chestplate");
- orcanLeggings = new orcanArmor(0, orcanArmorMaterial, 0, 2, "orcanArmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanLeggings, "orcanLeggings");
- LanguageRegistry.addName(orcanLeggings, "Orcan Leggings");
- orcanBoots = new orcanArmor(0, orcanArmorMaterial, 0, 3, "orcanArmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(orcanBoots, "orcanBoots");
- LanguageRegistry.addName(orcanBoots, "Orcan Boots");
- // LOAD THE SHOVEL 4
- MyShovel6 = new MyShovel( 0, MyToolMaterial8, "MyShovel6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel6, "MyShovel6");
- LanguageRegistry.addName(MyShovel6, "The NOPE Shovel");
- // LOAD THE SHOVEL 4
- MyShovel7 = new MyShovel( 0, MyToolMaterial9, "MyShovel7").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel7, "MyShovel7");
- LanguageRegistry.addName(MyShovel7, "End Shovel");
- // LOAD THE SHOVEL 3
- MyShovel3 = new MyShovel( 0, MyToolMaterial3, "MyShovel3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel3, "MyShovel3");
- LanguageRegistry.addName(MyShovel3, "GlowStone Shovel");
- // LOAD THE ITEM
- MyItem_6 = new MyItem( 0, "MyItem_6").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_6, "MyItem_6");
- LanguageRegistry.addName(MyItem_6, "End Shard");
- // LOAD THE AXE 2
- MyAxe2 = new MyAxe( 0, MyToolMaterial, "MyAxe2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe2, "MyAxe2");
- LanguageRegistry.addName(MyAxe2, "Sapphire Axe");
- // LOAD THE AXE 4
- MyAxe_4 = new MyAxe(0, MyToolMaterial5, "MyAxe_4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe_4, "MyAxe_4");
- LanguageRegistry.addName(MyAxe_4, "Ruby Axe");
- // LOAD THE AXE 2
- MyAxe_5 = new MyAxe(0, MyToolMaterial7, "MyAxe_5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe_5, "MyAxe_5");
- LanguageRegistry.addName(MyAxe_5, "Netherrack Axe");
- // LOAD THE AXE 2
- MyAxe_3 = new MyAxe(0, MyToolMaterial3, "MyAxe_3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe_3, "MyAxe_3");
- LanguageRegistry.addName(MyAxe_3, "GlowStone Axe");
- // LOAD THE AXE
- MyAxe = new MyAxe(0, MyToolMaterial2, "MyAxe").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe, "MyAxe");
- LanguageRegistry.addName(MyAxe, "Mega Axe");
- // LOAD PICKAXE 3
- MyPickaxe_3 = new MyPickaxe(0, MyToolMaterial3, "MyPickaxe_3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyPickaxe_3, "MyPickaxe_3");
- LanguageRegistry.addName(MyPickaxe_3, "GlowStone Pickaxe");
- // LOAD THE SWORD 2
- MySword_2 = new MySword(0, MyToolMaterial2, "MySword_2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_2, "MySword_2");
- LanguageRegistry.addName(MySword_2, "MegaKiller");
- // LOAD THE SWORD 6
- MySword_6 = new MySword(0, MyToolMaterial7, "MySword_6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_6, "MySword_6");
- LanguageRegistry.addName(MySword_6, "Netherrack Sword");
- // LOAD THE SWORD 3
- MySword_3 = new MySword(0, MyToolMaterial3, "MySword_3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_3, "MySword_3");
- LanguageRegistry.addName(MySword_3, "Glowstone Sword");
- // LOAD THE SWORD
- MySword_1 = new MySword(0, MyToolMaterial, "MySword_1").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_1, "MySword_1");
- LanguageRegistry.addName(MySword_1, "A Baccas Dream");
- // LOAD THE SWORD 8
- MySword_8 = new infinicraft.items.MySword2(0, MyToolMaterial10, "MySword_8").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_8, "MySword_8");
- LanguageRegistry.addName(MySword_8, "Take em' Sword");
- // LOAD THE SWORD
- MySword_4 = new MySword(0, MyToolMaterial5, "MySword_4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_4, "MySword_4");
- LanguageRegistry.addName(MySword_4, "Ruby Sword");
- // LOAD THE SWORD
- MySword_5 = new MySword(0, MyToolMaterial6, "MySword_5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MySword_5, "MySword_5");
- LanguageRegistry.addName(MySword_5, "Nights Edge");
- // LOAD THE SWORD
- MyAxe_6 = new MyAxe(0, MyToolMaterial9, "MyAxe_6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyAxe_6, "MyAxe_6");
- LanguageRegistry.addName(MyAxe_6, "EndStone Axe");
- // LOAD THE PICKAXE
- MyPickaxe_1 = new MyPickaxe(0, MyToolMaterial, "MyPickaxe_1").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyPickaxe_1, "MyPickaxe_1");
- LanguageRegistry.addName(MyPickaxe_1, "Sapphire Pickaxe");
- // LOAD THE PICKAXE 2
- MyPickaxe_2 = new MyPickaxe(0, MyToolMaterial2, "MyPickaxe_2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyPickaxe_2, "MyPickaxe_2");
- LanguageRegistry.addName(MyPickaxe_2, "Mega Pickaxe");
- // LOAD THE ITEM
- MyItem_5 = new MyItem(0, "MyItem_5").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_5, "MyItem_5");
- LanguageRegistry.addName(MyItem_5, "Nether Shard");
- // LOAD THE ITEM
- MyItem_1 = new MyItem(0, "MyItem_1").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_1, "MyItem_1");
- LanguageRegistry.addName(MyItem_1, "Sapphire");
- // LOAD THE ITEM 4
- MyItem_4 = new MyItem(0, "MyItem_4").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_4, "MyItem_4");
- LanguageRegistry.addName(MyItem_4, "Night Shard");
- // LOAD THE ITEM 2
- MyItem_2 = new MyItem(0, "MyItem_2").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_2, "MyItem_2");
- LanguageRegistry.addName(MyItem_2, "Mega Stone");
- // LOAD THE ITEM 2
- MyItem_3 = new MyItem(0, "MyItem_3").setCreativeTab(infinicraftMain).setMaxStackSize(64);
- GameRegistry.registerItem(MyItem_3, "MyItem_3");
- LanguageRegistry.addName(MyItem_3, "Ruby");
- // LOAD THE ITEM 2
- MyEnderStaff = new infinicraft.items.MyEnderStaff(0, "MyEnderStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
- GameRegistry.registerItem(MyEnderStaff, "MyEnderStaff");
- LanguageRegistry.addName(MyEnderStaff, "Ender Staff");
- //LOAD FIRE STAFF
- fireStaff = new infinicraft.items.fireStaff(0, "fireStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
- GameRegistry.registerItem(fireStaff, "fireStaff");
- LanguageRegistry.addName(fireStaff, "Fire Staff");
- // LOAD LIGHTNING STAFF
- lightningStaff = new infinicraft.items.lightningStaff(0, "lightningStaff").setCreativeTab(infinicraftMagic).setMaxStackSize(1);
- GameRegistry.registerItem(lightningStaff, "lightningStaff");
- LanguageRegistry.addName(lightningStaff, "[WIP] Lightning Staff");
- // LOAD THE FOOD
- /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
- MyFood_1 = new MyFood(0, 12, 6.0F, true, "MyFood_1").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyFood_1, "MyFood_1");
- LanguageRegistry.addName(MyFood_1, "Burger");
- // LOAD THE FOOD 2
- /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
- MyFood_2 = new MyFood(0, 4, 2.0F, false, "MyFood_2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyFood_2, "MyFood_2");
- LanguageRegistry.addName(MyFood_2, "Bacon Cupcake");
- // LOAD THE FOOD 2
- /** itemID, healAmount, SaturationModifier (F) isWolfsFavoriteMeat, Texture Name */
- MyFood_3 = new MyFood(0, 6, 3.0F, true, "MyFood_3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyFood_3, "MyFood_3");
- LanguageRegistry.addName(MyFood_3, "Bacon");
- // LOAD THE BLOCK
- MyBlock_1 = new MyBlock( 0, Material.rock, "MyBlock_1").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
- GameRegistry.registerBlock(MyBlock_1, "MyBlock_1");
- LanguageRegistry.addName(MyBlock_1, "Sapphire Ore");
- // LOAD THE BLOCK 2
- MyBlock_2 = new MyBlock_2( 0, Material.rock, "MyBlock_2").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain);
- GameRegistry.registerBlock(MyBlock_2, "MyBlock_2");
- LanguageRegistry.addName(MyBlock_2, "Nio Block");
- // LOAD THE BLOCK 2
- MyBlock_3 = new infinicraft.blocks.MyBlock_3( 0, Material.rock, "MyBlock_3").setLightLevel(0.8F).setResistance(10.0F).setHardness(3.0F).setStepSound(Block.soundTypeStone).setCreativeTab(infinicraftMain).setBlockTextureName("MyBlock_3");
- GameRegistry.registerBlock(MyBlock_3, "MyBlock_3");
- LanguageRegistry.addName(MyBlock_3, "Ruby Ore");
- // LOAD CHESTPLATE
- MyChest_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 1, "myarmor3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_3, "MyChest_3");
- LanguageRegistry.addName(MyChest_3, "GlowStone Chestplate");
- // LOAD CHESTPLATE
- MyChest_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 1, "myarmor5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_5, "MyChest_5");
- LanguageRegistry.addName(MyChest_5, "Netherrack Chestplate");
- // LOAD LEGGINGS
- MyLeggings_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 2, "myarmor5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_5, "MyLeggings_5");
- LanguageRegistry.addName(MyLeggings_5, "Netherrack Leggings");
- // LOAD BOOTS
- MyBoots_5 = new MyArmor_5 (0, MyArmorMaterial_3, 0, 3, "myarmor5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_5, "MyBoots_5");
- LanguageRegistry.addName(MyBoots_5, "Netherrack Boots");
- // LOAD LEGGINGS
- MyLeggings_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 2, "myarmor3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_3, "MyLeggings_3");
- LanguageRegistry.addName(MyLeggings_3, "GlowStone Leggings");
- // LOAD BOOTS
- MyBoots_3 = new MyArmor_3 (0, MyArmorMaterial_3, 0, 3, "myarmor3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_3, "MyBoots_3");
- LanguageRegistry.addName(MyBoots_3, "GlowStone Boots");
- // LOAD HELMET 2
- MyHelmet_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 0, "myarmor2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_2, "MyHelmet_2");
- LanguageRegistry.addName(MyHelmet_2, "Mega Helmet");
- // LOAD HELMET 2
- MyHelmet_5 = new MyArmor_5(0, MyArmorMaterial_5, 0, 0, "myarmor5").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_5, "MyHelmet_5");
- LanguageRegistry.addName(MyHelmet_5, "Netherrack Helmet");
- //LOAD HELMET 2
- MyHelmet_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 0, "myarmor6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_6, "MyHelmet_6");
- LanguageRegistry.addName(MyHelmet_6, "Ender Helmet");
- // LOAD CHESTPLATE 2
- MyChest_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 1, "myarmor6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_6, "MyChest_6");
- LanguageRegistry.addName(MyChest_6, "Ender Chestplate");
- // LOAD LEGGINGS 2
- MyLeggings_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 2, "myarmor6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_6, "MyLeggings_6");
- LanguageRegistry.addName(MyLeggings_6, "Ender Leggings");
- // LOAD BOOTS
- MyBoots_6 = new MyArmor_6(0, MyArmorMaterial_6, 0, 3, "myarmor6").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_6, "MyBoots_6");
- LanguageRegistry.addName(MyBoots_6, "Ender Boots");
- // LOAD HELMET 3
- MyHelmet_3 = new MyArmor_3(0, MyArmorMaterial_3, 0, 0, "myarmor3").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_3, "MyHelmet_3");
- LanguageRegistry.addName(MyHelmet_3, "GlowStone Helmet");
- // LOAD CHESTPLATE 2
- MyChest_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 1, "myarmor2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_2, "MyChest_2");
- LanguageRegistry.addName(MyChest_2, "Mega Chestplate");
- // LOAD LEGGINGS 2
- MyLeggings_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 2, "myarmor2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_2, "MyLeggings_2");
- LanguageRegistry.addName(MyLeggings_2, "Mega Leggings");
- // LOAD BOOTS
- MyBoots_2 = new MyArmor_2(0, MyArmorMaterial_2, 0, 3, "myarmor2").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_2, "MyBoots_2");
- LanguageRegistry.addName(MyBoots_2, "Mega Boots");
- // LOAD SHOVEL
- MyShovel = new MyShovel(0, MyToolMaterial2, "MyShovel").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyShovel, "MyShovel");
- LanguageRegistry.addName(MyShovel, "Mega Shovel");
- // LOAD HELMET
- MyHelmet_1 = new MyArmor(0, MyArmorMaterial_1, 0, 0, "myarmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_1, "MyHelmet_1");
- LanguageRegistry.addName(MyHelmet_1, "Sapphire Helmet");
- // LOAD CHESTPLATE
- MyChest_1 = new MyArmor(0, MyArmorMaterial_1, 0, 1, "myarmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_1, "MyChest_1");
- LanguageRegistry.addName(MyChest_1, "Sapphire Chestplate");
- // LOAD LEGGINGS
- MyLeggings_1 = new MyArmor(0, MyArmorMaterial_1, 0, 2, "myarmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_1, "MyLeggings_1");
- LanguageRegistry.addName(MyLeggings_1, "Sapphire Leggings");
- // LOAD BOOTS
- MyBoots_1 = new MyArmor(0, MyArmorMaterial_1, 0, 3, "myarmor").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_1, "MyBoots_1");
- LanguageRegistry.addName(MyBoots_1, "Sapphire Boots");
- // LOAD HELMET
- MyHelmet_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 0, "myarmor4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyHelmet_4, "MyHelmet_4");
- LanguageRegistry.addName(MyHelmet_4, "Ruby Helmet");
- // LOAD CHESTPLATE
- MyChest_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 1, "myarmor4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyChest_4, "MyChest_4");
- LanguageRegistry.addName(MyChest_4, "Ruby Chestplate");
- // LOAD LEGGINGS
- MyLeggings_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 2, "myarmor4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyLeggings_4, "MyLeggings_4");
- LanguageRegistry.addName(MyLeggings_4, "Ruby Leggings");
- // LOAD BOOTS
- MyBoots_4 = new MyArmor_4(0, MyArmorMaterial_4, 0, 3, "myarmor4").setCreativeTab(infinicraftMain);
- GameRegistry.registerItem(MyBoots_4, "MyBoots_4");
- LanguageRegistry.addName(MyBoots_4, "Ruby Boots");
- // REGISTER YOUR ENTITY
- EntityRegistry.registerGlobalEntityID(MyEntityOgre.class, "Golem Of Death", EntityRegistry.findGlobalUniqueEntityId());
- EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.desert);
- EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.forest);
- EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster, BiomeGenBase.plains);
- EntityRegistry.addSpawn(MyEntityOgre.class, 15, 1, 4, EnumCreatureType.monster);
- registerEntityEgg(MyEntityOgre.class, (new Color(255, 255, 255)).getRGB(), (new Color(0, 0, 0)).getRGB());
- // REGISTER YOUR ENTITY
- EntityRegistry.registerGlobalEntityID(MyEntityApe.class, "Ape", EntityRegistry.findGlobalUniqueEntityId(),(new Color(97, 71, 52)).getRGB(), (new Color(151, 137, 111)).getRGB());
- EntityRegistry.addSpawn(MyEntityApe.class, 15, 6, 12, EnumCreatureType.ambient, BiomeGenBase.jungle);
- EntityRegistry.addSpawn(MyEntityApe.class, 15, 6, 12, EnumCreatureType.ambient, BiomeGenBase.jungleHills);
- EntityRegistry.addSpawn(MyEntityApe.class, 5, 1, 5, EnumCreatureType.ambient);
- // REGISTER YOUR ENTITY 3
- EntityRegistry.registerGlobalEntityID(EntityBeardedDragon.class, "Bearded Dragon", EntityRegistry.findGlobalUniqueEntityId());
- EntityRegistry.addSpawn(EntityBeardedDragon.class, 1, 1, 1, EnumCreatureType.ambient, BiomeGenBase.desert);
- EntityRegistry.addSpawn(EntityBeardedDragon.class, 1, 1, 1, EnumCreatureType.ambient);
- registerEntityEgg(EntityBeardedDragon.class, (new Color(99, 74, 57)).getRGB(), (new Color(249, 255, 0)).getRGB());
- MyAchievement_1 = new Achievement("achievement.megastone", "MyItem_2", 8 , 12, new ItemStack(MyItem_2), AchievementList.theEnd2).registerStat();
- MyAchievement_2 = new Achievement("achievement.nio", "MyBlock_2", -3 , 3, infinicraft.main.Main.MyBlock_2, AchievementList.acquireIron).registerStat();
- MyAchievement_3 = new Achievement("achievement.bacon", "MyFood_2", -3 , -5, new ItemStack(MyFood_2), AchievementList.bakeCake).registerStat();
- /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
- }
- @EventHandler
- public static void init( FMLInitializationEvent event ) {
- if (event.getSide() == Side.CLIENT)
- Minecraft.getMinecraft().refreshResources();
- proxy.registerRenderInformation();
- }
- {
- /**
- * RECIPES SECTION
- * *********************************************************** */
- //Fire Staff Recipe
- GameRegistry.addRecipe(new ItemStack(fireStaff,1), new Object[]
- {
- "XYX",
- "XYX",
- "NPN",
- 'X', Items.fire_charge,
- 'Y', MyItem_2,
- 'N', Items.nether_star,
- 'P', Items.stick
- });
- // AXE RECIPE 3
- GameRegistry.addRecipe(new ItemStack(MyAxe_3,1), new Object[]
- {
- "XX",
- "SX",
- "S ",
- 's', Items.stick,
- 'X', Items.glowstone_dust,
- });
- // AXE RECIPE 3
- GameRegistry.addRecipe(new ItemStack(MyShovel6,1), new Object[]
- {
- "XAX",
- "ABA",
- "XAX",
- 'B', MyShovel,
- 'X', MyShovel5,
- 'A', Blocks.diamond_block,
- });
- // AXE RECIPE 5
- GameRegistry.addRecipe(new ItemStack(MyAxe_5,1), new Object[]
- {
- "XX",
- "SX",
- "S ",
- 'S', Items.stick,
- 'X', MyItem_5,
- });
- // SWORD RECIPE 2
- GameRegistry.addRecipe(new ItemStack(MySword_2, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', MyItem_2,
- });
- // SWORD RECIPE 2
- GameRegistry.addRecipe(new ItemStack(MySword_4, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', MyItem_3,
- });
- //SWORD RECIPE 3
- GameRegistry.addRecipe(new ItemStack(MySword_3, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', Items.glowstone_dust,
- });
- GameRegistry.addRecipe(new ItemStack(pulseBullet, 4), new Object[]
- {
- " X ",
- "YXY",
- "YYY",
- 'X', Items.iron_ingot,
- 'Y', Blocks.stone,
- });
- // AXE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyAxe, 1), new Object[]
- {
- " XX",
- " SX",
- " S ",
- 'S', Items.stick,
- 'X', MyItem_2,
- });
- // MEGA STONE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyItem_2, 1), new Object[]
- {
- "YYY",
- "YXY",
- "YYY",
- 'X', MyBlock_2,
- 'Y', Items.nether_star
- });
- // MEGA STONE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyPickaxe_6, 1), new Object[]
- {
- "XXX",
- " Y ",
- " Y ",
- 'X', MyItem_6,
- 'Y', Items.stick
- });
- //Ruby Pickaxe
- GameRegistry.addRecipe(new ItemStack(rubyPickaxe, 1), new Object[]
- {
- "XXX",
- " Y ",
- " Y ",
- 'X', MyItem_3,
- 'Y', Items.stick
- });
- // MEGA STONE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyAxe_6, 1), new Object[]
- {
- "XX",
- "YX",
- "Y ",
- 'X', MyItem_6,
- 'Y', Items.stick
- });
- // NIGHTS EDGE RECIPE
- GameRegistry.addRecipe(new ItemStack(MySword_5, 1), new Object[]
- {
- "X",
- "X",
- "Y",
- 'X', MyItem_4,
- 'Y', Items.stick,
- });
- // NIGHT SHARD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyItem_4, 1), new Object[]
- {
- "XXX",
- "XYX",
- "XXX",
- 'X', Items.ender_pearl,
- 'Y', Items.ender_eye,
- });
- // SWORD RECIPE
- GameRegistry.addRecipe(new ItemStack(MySword_1, 1), new Object[]
- {
- " X ",
- "XXX",
- " S ",
- 'S', Items.stick,
- 'X', MyItem_1,
- });
- // NETHER SHARD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyItem_5, 1), new Object[]
- {
- "S",
- 'S', Blocks.netherrack
- });
- // PICKAXE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyPickaxe_1, 1), new Object[]
- {
- "XXX",
- " S ",
- " S ",
- 'S', Items.stick,
- 'X', MyItem_1,
- });
- // PICKAXE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyPickaxe_5, 1), new Object[]
- {
- "XXX",
- " S ",
- " S ",
- 'S', Items.stick,
- 'X', MyItem_5,
- });
- // PICKAXE RECIPE 2
- GameRegistry.addRecipe(new ItemStack(MyPickaxe_2, 1), new Object[]
- {
- "XXX",
- " S ",
- " S ",
- 'S', Items.stick,
- 'X', MyItem_2,
- });
- // ENDER STAFF RECIPE
- GameRegistry.addRecipe(new ItemStack(MyEnderStaff, 1), new Object[]
- {
- "ZZZ",
- "XXX",
- "OSO",
- 'S', Items.nether_star,
- 'X', Items.ender_pearl,
- 'Z', Items.ender_eye,
- 'O', Blocks.obsidian,
- });
- // Sword RECIPE 6
- GameRegistry.addRecipe(new ItemStack(MySword_6, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', MyItem_5,
- });
- // FOOD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyFood_1, 1), new Object[]
- {
- " X ",
- " S ",
- " X ",
- 'S', Items.cooked_beef,
- 'X', Items.bread
- });
- // FOOD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyItem_6, 1), new Object[]
- {
- "X",
- 'X', Blocks.end_stone
- });
- // FOOD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyFood_2, 1), new Object[]
- {
- " Y ",
- " S ",
- " X ",
- 'S', MyFood_3,
- 'X', Items.bread,
- 'Y', Items.sugar
- });
- // FOOD RECIPE
- GameRegistry.addRecipe(new ItemStack(MySword_8, 1), new Object[]
- {
- "S",
- "S",
- "X",
- 'S', Items.nether_star,
- 'X', Items.stick,
- });
- // FOOD RECIPE
- GameRegistry.addRecipe(new ItemStack(MyFood_3, 1), new Object[]
- {
- " X ",
- " S ",
- " X ",
- 'S', Items.cooked_porkchop,
- 'X', Items.porkchop
- });
- // SMELTING RECIPE
- GameRegistry.addSmelting(MyBlock_1, (new ItemStack(MyItem_1, 1)), 20);
- // SMELTING RECIPE 2
- GameRegistry.addSmelting(MyBlock_3, (new ItemStack(MyItem_3, 1)), 21);
- //Smelting Recipse
- GameRegistry.addSmelting(orcanBlock, (new ItemStack(orcanIngot)), 20);
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_1, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', MyItem_1,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_6, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', MyItem_6,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_6, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', MyItem_6,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_6, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', MyItem_6,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_6, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', MyItem_6,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_5, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', MyItem_5,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_4, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', MyItem_3,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_4, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', MyItem_3,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_5, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', MyItem_5,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_5, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', MyItem_5,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_4, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', MyItem_3,
- });
- // PICKAXE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyAxe_4, 1), new Object[]
- {
- "XX",
- "SX",
- "S ",
- 'S', Items.stick,
- 'X', MyItem_3,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_5, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', MyItem_5,
- });
- // HELMET RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_4, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', MyItem_3,
- });
- // NIO BLOCK RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBlock_2, 1), new Object[]
- {
- "CIC",
- "IMI",
- "CIC",
- 'M', Blocks.glass,
- 'I', Blocks.redstone_lamp,
- 'C', Items.redstone
- });
- // CHESTPLATE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_1, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', MyItem_1,
- });
- // LEGGINGS RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_1, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', MyItem_1,
- });
- // BOOTS RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_1, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', MyItem_1,
- });
- // CHESTPLATE 2 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_2, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', MyItem_2,
- });
- // HELMET 2 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_2, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', MyItem_2,
- });
- // LEGGINGS RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_2, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', MyItem_2,
- });
- // BOOTS RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_2, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', MyItem_2,
- });
- // SHOVEL RECIPE
- GameRegistry.addRecipe(new ItemStack(MyShovel, 1), new Object[]
- {
- "X",
- "Y",
- "Y",
- 'X', MyItem_2,
- 'Y', Items.stick
- });
- // SHOVEL RECIPE
- GameRegistry.addRecipe(new ItemStack(MyShovel5, 1), new Object[]
- {
- "X",
- "Y",
- "Y",
- 'X', MyItem_5,
- 'Y', Items.stick
- });
- // SHOVEL RECIPE 2
- GameRegistry.addRecipe(new ItemStack(MyShovel2, 1), new Object[]
- {
- "X",
- "Y",
- "Y",
- 'X', MyItem_1,
- 'Y', Items.stick
- });
- // SHOVEL RECIPE 3
- GameRegistry.addRecipe(new ItemStack(MyShovel3, 1), new Object[]
- {
- "X",
- "Y",
- "Y",
- 'X', Items.glowstone_dust,
- 'Y', Items.stick
- });
- // SHOVEL RECIPE 4
- GameRegistry.addRecipe(new ItemStack(MyShovel4, 1), new Object[]
- {
- "X",
- "Y",
- "Y",
- 'X', MyItem_3,
- 'Y', Items.stick
- });
- // AXE RECIPE
- GameRegistry.addRecipe(new ItemStack(MyAxe2, 1), new Object[]
- {
- "XX",
- "SX",
- "S ",
- 'S', Items.stick,
- 'X', MyItem_1,
- });
- // HELMET 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyHelmet_3, 1), new Object[]
- {
- "XXX",
- "X X",
- 'X', Items.glowstone_dust,
- });
- // CHEST 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyChest_3, 1), new Object[]
- {
- "X X",
- "XXX",
- "XXX",
- 'X', Items.glowstone_dust,
- });
- // LEGGINGS 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyLeggings_3, 1), new Object[]
- {
- "XXX",
- "X X",
- "X X",
- 'X', Items.glowstone_dust,
- });
- // BOOTS 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyBoots_3, 1), new Object[]
- {
- "X X",
- "X X",
- 'X', Items.glowstone_dust,
- });
- // PICKAXE 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MyPickaxe_3, 1), new Object[]
- {
- "XXX",
- " S ",
- " S ",
- 'S', Items.stick,
- 'X', Items.glowstone_dust,
- });
- // PICKAXE 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(MySword_7, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', MyItem_6,
- });
- // PICKAXE 3 RECIPE
- GameRegistry.addRecipe(new ItemStack(orcanSword, 1), new Object[]
- {
- "X",
- "X",
- "S",
- 'S', Items.stick,
- 'X', orcanIngot,
- });
- // Orcan Pickaxe Recipe
- GameRegistry.addRecipe(new ItemStack(orcanPickaxe, 1), new Object[]
- {
- "XXX",
- " S ",
- " S ",
- 'S', Items.stick,
- 'X', orcanIngot,
- });
- // Orcan Pickaxe Recipe
- GameRegistry.addRecipe(new ItemStack(orcanAxe, 1), new Object[]
- {
- "XX",
- "SX",
- "S ",
- 'S', Items.stick,
- 'X', orcanIngot,
- });
- // Orcan Pickaxe Recipe
- GameRegistry.addRecipe(new ItemStack(orcanShovel, 1), new Object[]
- {
- "X",
- "S",
- "S",
- 'S', Items.stick,
- 'X', orcanIngot,
- });
- // Pulse Rifle Recipe
- GameRegistry.addRecipe(new ItemStack(pulseRifle, 1), new Object[]
- {
- " LS",
- "ZXL",
- "XZ ",
- 'S', Items.redstone,
- 'X', MyItem_1,
- 'Z', pulseBullet,
- 'L', new ItemStack(Items.dye, 1, 4)
- });
- // Ammo Recipe
- GameRegistry.addRecipe(new ItemStack(pulseAmmo, 4), new Object[]
- {
- "GXG",
- "YXY",
- "YSY",
- 'S', Items.redstone,
- 'X', pulseBullet,
- 'Y', Blocks.stone,
- 'G', Items.gunpowder
- });
- /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
- /**
- * EXTRA METHODS SECTION
- * *********************************************************** */
- AchievementPage.registerAchievementPage(new AchievementPage("InfiniAchievementPage", new Achievement[]{MyAchievement_1, MyAchievement_2, MyAchievement_3}));
- GameRegistry.registerWorldGenerator(new MyBlockGen(), 1);
- GameRegistry.registerWorldGenerator(new MyBlockGenRuby(), 2);
- GameRegistry.registerWorldGenerator(new orcanBlockGen(), 3);
- // CHANGE THE TEXT OF THE ACHIEVEMENT
- // REGISTER PICKUP HANDLER
- // MyPickupHandler MyPickupHandler_1 = new MyPickupHandler();
- // GameRegistry.registerPickupHandler(MyPickupHandler_1);
- // REGISTER CRAFTING HANDLER
- // MyCraftingHandler MyCraftingHandler_1 = new MyCraftingHandler();
- //GameRegistry.RegisterCraftingHandler(MyCraftingHandler_1);
- // REGISTER CRAFTING HANDLER
- //MyCraftingHandler MyCraftingHandler_2 = new MyCraftingHandler();
- // GameRegistry.registerCraftingHandler(MyCraftingHandler_2);
- // CHANGE TAB NAME
- LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftMain", "en_US", "InfiniCraft Main");
- LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftTech", "en_US", "InfiniCraft Tech");
- LanguageRegistry.instance().addStringLocalization("itemGroup.infinicraftMagic", "en_US", "InfiniCraft Magic");
- // CHANGE THE TEXT OF THE ACHIEVEMENT
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1", "en_US", "Dude, How Did You Get This Far?");
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_1.desc", "en_US", "Aquire Mega Stone with 8 Nether Stars and 1 Nio Block");
- // CHANGE THE TEXT OF THE ACHIEVEMENT
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2", "en_US", "The Nio");
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_2.desc", "en_US", "Aquire A Nio Block");
- // CHANGE THE TEXT OF THE ACHIEVEMENT
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3", "en_US", "BACON! HECK YEAH!");
- LanguageRegistry.instance().addStringLocalization("achievement.MyAchievement_3.desc", "en_US", "Aquire Bacon");
- /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
- }
- @EventHandler
- public static void postInit( FMLPostInitializationEvent event ) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement