Advertisement
ezeglace

basic gem class

Aug 6th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int BlockID = 500;
  2.         public static int ItemID = 6000;
  3.  
  4.         public static int rubyOreID, rubyBlockID, sapphireOreID, sapphireBlockID, pureOreID, pureBlockID;
  5.         public static int rubyID, rubyPickID, rubySwordID, rubyShovelID, rubyAxeID, rubyHoeID, rubyHelmetID, rubyChestplateID, rubyLeggingsID, rubyBootsID, sapphireID;
  6.         public static int sapphirePickID, sapphireSwordID, sapphireShovelID, sapphireAxeID, sapphireHoeID, sapphireHelmetID, sapphireChestplateID, sapphireLeggingsID, sapphireBootsID;
  7.         public static int emeraldPickID, emeraldSwordID, emeraldShovelID, emeraldAxeID, emeraldHoeID, emeraldHelmetID, emeraldChestplateID, emeraldLeggingsID, emeraldBootsID;
  8.         public static int firedGemID, pureGemID, purePickID, pureSwordID, pureShovelID, pureAxeID, pureHoeID, pureHelmetID, pureChestplateID, pureLeggingsID, pureBootsID;
  9.  
  10.         public static Block RubyOre, RubyBlock, SapphireOre, SapphireBlock, PureOre, PureBlock;
  11.         public static Item Ruby, RubyPickaxe, RubySword, RubyShovel, RubyAxe, RubyHoe, RubyHelmet, RubyChestplate, RubyLeggings, RubyBoots;
  12.         public static Item Sapphire, SapphirePickaxe, SapphireSword, SapphireShovel, SapphireAxe, SapphireHoe, SapphireHelmet, SapphireChestplate, SapphireLeggings, SapphireBoots;
  13.         public static Item EmeraldPickaxe, EmeraldSword, EmeraldShovel, EmeraldAxe, EmeraldHoe, EmeraldHelmet, EmeraldChestplate, EmeraldLeggings, EmeraldBoots;
  14.         public static Item FiredGem, PureGem, PurePickaxe, PureSword, PureShovel, PureAxe, PureHoe, PureHelmet, PureChestplate, PureLeggings, PureBoots;
  15.  
  16.         @EventHandler
  17.         public void preInit(FMLPreInitializationEvent event) {
  18.                 Configuration config = new Configuration(event.getSuggestedConfigurationFile());
  19.                 config.load();
  20.                         rubyOreID = config.get("block", "rubyOre", BlockID+0).getInt();
  21.                         rubyBlockID = config.get("block", "rubyBlock", BlockID+2).getInt();
  22.                         sapphireOreID = config.get("block", "sapphireOre", BlockID+1).getInt();
  23.                         sapphireBlockID = config.get("block", "sapphireBlock", BlockID+3).getInt();
  24.                         pureOreID = config.get("block", "pureOre", BlockID+4).getInt();
  25.                         pureBlockID = config.get("block", "pureBlock", BlockID+5).getInt();
  26.                         rubyID = config.get("item", "ruby", ItemID+0).getInt()-256;
  27.                         rubyPickID = config.get("item", "rubyPickaxe", ItemID+1).getInt()-256;
  28.                         rubySwordID = config.get("item", "rubySword", ItemID+2).getInt()-256;
  29.                         rubyShovelID = config.get("item", "rubyShovel", ItemID+3).getInt()-256;
  30.                         rubyAxeID = config.get("item", "rubyAxe", ItemID+4).getInt()-256;
  31.                         rubyHoeID = config.get("item", "rubyHoe", ItemID+5).getInt()-256;
  32.                         //rubyHelmetID = config.get("item", "rubyHelmet", ItemID+6).getInt()-256;
  33.                         //rubyChestplateID = config.get("item", "rubyChestplate", ItemID+7).getInt()-256;                      
  34.                         //rubyLeggingsID = config.get("item", "rubyLeggings", ItemID+8).getInt()-256;
  35.                         //rubyBootsID = config.get("item", "rubyBoots", ItemID+9).getInt()-256;                      
  36.                         sapphireID = config.get("item", "sapphire", ItemID+10).getInt()-256;
  37.                         sapphirePickID = config.get("item", "sapphirePickaxe", ItemID+11).getInt()-256;
  38.                         sapphireSwordID = config.get("item", "sapphireSword", ItemID+12).getInt()-256;
  39.                         sapphireShovelID = config.get("item", "sapphireShovel", ItemID+13).getInt()-256;
  40.                         sapphireAxeID = config.get("item", "sapphireAxe", ItemID+14).getInt()-256;
  41.                         sapphireHoeID = config.get("item", "sapphireHoe", ItemID+15).getInt()-256;
  42.                         //sapphireHelmetID = config.get("item", "sapphireHelmet", ItemID+16).getInt()-256;
  43.                         //sapphireChestplateID = config.get("item", "sapphireChestplate", ItemID+17).getInt()-256;                      
  44.                         //sapphireLeggingsID = config.get("item", "sapphireLeggings", ItemID+18).getInt()-256;
  45.                         //sapphireBootsID = config.get("item", "sapphireBoots", ItemID+19).getInt()-256;                      
  46.                         emeraldPickID = config.get("item", "emeraldPickaxe", ItemID+20).getInt()-256;
  47.                         emeraldSwordID = config.get("item", "emeraldSword", ItemID+21).getInt()-256;
  48.                         emeraldShovelID = config.get("item", "emeraldShovel", ItemID+22).getInt()-256;
  49.                         emeraldAxeID = config.get("item", "emeraldAxe", ItemID+23).getInt()-256;
  50.                         emeraldHoeID = config.get("item", "emeraldHoe", ItemID+24).getInt()-256;
  51.                         //emeraldHelmetID = config.get("item", "emeraldHelmet", ItemID+25).getInt()-256;
  52.                         //emeraldChestplateID = config.get("item", "emeraldChestplate", ItemID+26).getInt()-256;                      
  53.                         //emeraldLeggingsID = config.get("item", "emeraldLeggings", ItemID+27).getInt()-256;
  54.                         //emeraldBootsID = config.get("item", "emeraldBoots", ItemID+28).getInt()-256;
  55.                         firedGemID = config.get("item", "firedGem", ItemID+29).getInt()-256;
  56.                         pureGemID = config.get("item", "pureGem", ItemID+30).getInt()-256;
  57.                         purePickID = config.get("item", "purePickaxe", ItemID+31).getInt()-256;
  58.                         pureSwordID = config.get("item", "pureSword", ItemID+32).getInt()-256;
  59.                         pureShovelID = config.get("item", "pureShovel", ItemID+33).getInt()-256;
  60.                         pureAxeID = config.get("item", "pureAxe", ItemID+34).getInt()-256;
  61.                         pureHoeID = config.get("item", "pureHoe", ItemID+35).getInt()-256;
  62.                         //pureHelmetID = config.get("item", "pureHelmet", ItemID+36).getInt()-256;
  63.                         //pureChestplateID = config.get("item", "pureChestplate", ItemID+37).getInt()-256;                      
  64.                         //pureLeggingsID = config.get("item", "pureLeggings", ItemID+38).getInt()-256;
  65.                         //pureBootsID = config.get("item", "pureBoots", ItemID+39).getInt()-256;
  66.                        
  67.                 config.save();
  68.                
  69.                 RubyOre = new RubyOre(rubyOreID);
  70.                 RubyBlock = new RubyBlock(rubyBlockID);
  71.                 SapphireOre = new SapphireOre(sapphireOreID);
  72.                 SapphireBlock = new SapphireBlock(sapphireBlockID);
  73.                 PureOre = new PureOre(pureOreID);
  74.                 PureBlock = new PureBlock(pureBlockID);
  75.                 //Ruby
  76.                 Ruby = new Ruby(rubyID);
  77.                 RubyPickaxe = new RubyPickaxe(rubyPickID, toolRuby);
  78.                 RubySword = new RubySword(rubySwordID, toolRuby);
  79.                 RubyShovel = new RubyShovel(rubyShovelID, toolRuby);
  80.                 RubyAxe = new RubyAxe(rubyAxeID, toolRuby);
  81.                 RubyHoe = new RubyHoe(rubyHoeID, toolRuby);
  82.                 //RubyHelmet = new RubyHelmet(rubyHelmetID, armorRuby);
  83.                 //RubyChestplate = new RubyChestplate(rubyChestplateID, armorRuby);
  84.                 //RubyLeggings = new RubyLeggings(rubyLeggingsID, armorRuby);
  85.                 //RubyBoots = new RubyBoots(rubyBootsID, armorRuby);
  86.                 //Sapphire
  87.                 Sapphire = new Sapphire(sapphireID);
  88.                 SapphirePickaxe = new SapphirePickaxe(sapphirePickID, toolSapphire);
  89.                 SapphireSword = new SapphireSword(sapphireSwordID, toolSapphire);
  90.                 SapphireShovel = new SapphireShovel(sapphireShovelID, toolSapphire);
  91.                 SapphireAxe = new SapphireAxe(sapphireAxeID, toolSapphire);
  92.                 SapphireHoe = new SapphireHoe(sapphireHoeID, toolSapphire);
  93.                 //SapphireHelmet = new SapphireHelmet(sapphireHelmetID, armorSapphire);
  94.                 //SapphireChestplate = new SapphireChestplate(sapphireChestplateID, armorSapphire);
  95.                 //SapphireLeggings = new SapphireLeggings(sapphireLeggingsID, armorSapphire);
  96.                 //SapphireBoots = new SapphireBoots(sapphireBootsID, armorSapphire);
  97.                 //Emerald
  98.                 EmeraldPickaxe = new EmeraldPickaxe(emeraldPickID, toolEmerald);
  99.                 EmeraldSword = new EmeraldSword(emeraldSwordID, toolEmerald);
  100.                 EmeraldShovel = new EmeraldShovel(emeraldShovelID, toolEmerald);
  101.                 EmeraldAxe = new EmeraldAxe(emeraldAxeID, toolEmerald);
  102.                 EmeraldHoe = new EmeraldHoe(emeraldHoeID, toolEmerald);
  103.                 //EmeraldHelmet = new EmeraldHelmet(emeraldHelmetID, armorEmerald);
  104.                 //EmeraldChestplate = new EmeraldChestplate(emeraldChestplateID, armorEmerald);
  105.                 //EmeraldLeggings = new EmeraldLeggings(emeraldLeggingsID, armorEmerrald);
  106.                 //EmeraldBoots = new EmeraldBoots(emeraldBootsID, armorEmerald);
  107.                 //PureGem
  108.                 FiredGem = new FiredGem(firedGemID);
  109.                 PureGem = new PureGem(pureGemID);
  110.                 PurePickaxe = new PurePickaxe(purePickID, toolPure);
  111.                 PureSword = new PureSword(pureSwordID, toolPure);
  112.                 PureShovel = new PureShovel(pureShovelID, toolPure);
  113.                 PureAxe = new PureAxe(pureAxeID, toolPure);
  114.                 PureHoe = new PureHoe(pureHoeID, toolPure);
  115.                 //PureHelmet = new PureHelmet(pureHelmetID, armorPure);
  116.                 //PureChestplate = new PureChestplate(pureChestplateID, armorPure);
  117.                 //PureLeggings = new PureLeggings(pureLeggingsID, armorPure);
  118.                 //PureBoots = new PureBoots(pureBootsID, armorPure);
  119.            
  120.         }
  121.        
  122.         @EventHandler
  123.         public void load(FMLInitializationEvent event) {  
  124.                 //Item data
  125.                 LanguageRegistry.addName(Ruby, "Ruby");
  126.                 GameRegistry.addShapelessRecipe(new ItemStack(Gem.Ruby, 9), new ItemStack(Gem.RubyBlock));
  127.                
  128.                 LanguageRegistry.addName(Sapphire, "Sapphire");
  129.                 GameRegistry.addShapelessRecipe(new ItemStack(Gem.Sapphire, 9), new ItemStack(Gem.SapphireBlock));
  130.                
  131.                 LanguageRegistry.addName(FiredGem, "Fired Gem");
  132.                 GameRegistry.addSmelting(Item.emerald.itemID, new ItemStack(Gem.FiredGem), 1.0F);
  133.                 GameRegistry.addSmelting(Gem.Ruby.itemID, new ItemStack(Gem.FiredGem), 1.0F);
  134.                 GameRegistry.addSmelting(Gem.Sapphire.itemID, new ItemStack(Gem.FiredGem), 1.0F);
  135.                
  136.                 LanguageRegistry.addName(PureGem, "Pure Gem");
  137.                 GameRegistry.addRecipe(new ItemStack(Gem.PureGem, 1), new Object [] {"xxx", "xxx", "xxx", 'x', FiredGem});
  138.                 GameRegistry.addShapelessRecipe(new ItemStack(Gem.PureGem, 9), new ItemStack(Gem.PureBlock));
  139.                
  140.                 //Tool data
  141.                 //Ruby
  142.                 LanguageRegistry.addName(RubyPickaxe, "Ruby Pickaxe");
  143.                 GameRegistry.addRecipe(new ItemStack(Gem.RubyPickaxe, 1), new Object [] {"xxx", " y ", " y ", 'x', Ruby, 'y', Item.stick});
  144.                
  145.                 LanguageRegistry.addName(RubySword, "Ruby Sword");
  146.                 GameRegistry.addRecipe(new ItemStack(Gem.RubySword, 1), new Object [] {" x ", " x ", " y ", 'x', Ruby, 'y', Item.stick});
  147.                
  148.                 LanguageRegistry.addName(RubyAxe, "Ruby Axe");
  149.                 GameRegistry.addRecipe(new ItemStack(Gem.RubyAxe, 1), new Object [] {"xx ", "xy ", " y ", 'x', Ruby, 'y', Item.stick});
  150.  
  151.                 LanguageRegistry.addName(RubyShovel, "Ruby Shovel");
  152.                 GameRegistry.addRecipe(new ItemStack(Gem.RubyShovel, 1), new Object [] {" x ", " y ", " y ", 'x', Ruby, 'y', Item.stick});
  153.  
  154.                 LanguageRegistry.addName(RubyHoe, "Ruby Hoe");
  155.                 //GameRegistry.addRecipe(new ItemStack(Gem.RubyHoe, 1), new Object [] {"xx ", " y ", " y ", 'x', Ruby, 'y', Item.stick});
  156.                
  157.                 //LanguageRegistry.addName(RubyHelmet, "Ruby Helmet");
  158.                 //GameRegistry.addRecipe(new ItemStack(Gem.RubyHelmet, 1), new Object [] {"xxx", "x x", 'x', Ruby});
  159.                
  160.                 //LanguageRegistry.addName(RubyChestplate, "Ruby Chestplate");
  161.                 //GameRegistry.addRecipe(new ItemStack(Gem.RubyChestplate, 1), new Object [] {"x x", "xxx", "xxx", 'x', Ruby});
  162.                
  163.                 //LanguageRegistry.addName(RubyLeggings, "Ruby Leggings");
  164.                 //GameRegistry.addRecipe(new ItemStack(Gem.RubyLeggings, 1), new Object [] {"xxx", "x x", "x x", 'x', Ruby});
  165.                
  166.                 //LanguageRegistry.addName(RubyBoots, "Ruby Boots");
  167.                 //GameRegistry.addRecipe(new ItemStack(Gem.RubyBoots, 1), new Object [] {"x x", "x x", 'x', Ruby});
  168.                
  169.                 //Sapphire
  170.                 LanguageRegistry.addName(SapphirePickaxe, "Sapphire Pickaxe");
  171.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphirePickaxe, 1), new Object [] {"xxx", " y ", " y ", 'x', Sapphire, 'y', Item.stick});
  172.                
  173.                 LanguageRegistry.addName(SapphireSword, "Sapphire Sword");
  174.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphireSword, 1), new Object [] {" x ", " x ", " y ", 'x', Sapphire, 'y', Item.stick});
  175.                
  176.                 LanguageRegistry.addName(SapphireAxe, "Sapphire Axe");
  177.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphireAxe, 1), new Object [] {"xx ", "xy ", " y ", 'x', Sapphire, 'y', Item.stick});
  178.                
  179.                 LanguageRegistry.addName(SapphireShovel, "Sapphire Shovel");
  180.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphireShovel, 1), new Object [] {" x ", " y ", " y ", 'x', Sapphire, 'y', Item.stick});
  181.                
  182.                 LanguageRegistry.addName(SapphireHoe, "Sapphire Hoe");
  183.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphireHoe, 1), new Object [] {"xx ", " y ", " y ", 'x', Sapphire, 'y', Item.stick});
  184.                
  185.                 //LanguageRegistry.addName(SapphireHelmet, "Sapphire Helmet");
  186.                 //GameRegistry.addRecipe(new ItemStack(Gem.SapphireHelmet, 1), new Object [] {"xxx", "x x", 'x', Sapphire});
  187.                
  188.                 //LanguageRegistry.addName(SapphireChestplate, "Sapphire Chestplate");
  189.                 //GameRegistry.addRecipe(new ItemStack(Gem.SapphireChestplate, 1), new Object [] {"x x", "xxx", "xxx", 'x', Sapphire});
  190.                
  191.                 //LanguageRegistry.addName(SapphireLeggings, "Sapphire Leggings");
  192.                 //GameRegistry.addRecipe(new ItemStack(Gem.SapphireLeggings, 1), new Object [] {"xxx", "x x", "x x", 'x', Sapphire});
  193.                
  194.                 //LanguageRegistry.addName(SapphireBoots, "Sapphire Boots");
  195.                 //GameRegistry.addRecipe(new ItemStack(Gem.SapphireBoots, 1), new Object [] {"x x", "x x", 'x', Sapphire});
  196.                
  197.                 //Emerald
  198.                 LanguageRegistry.addName(EmeraldPickaxe, "Emerald Pickaxe");
  199.                 GameRegistry.addRecipe(new ItemStack(Gem.EmeraldPickaxe, 1), new Object [] {"xxx", " y ", " y ", 'x', Item.emerald, 'y', Item.stick});
  200.                
  201.                 LanguageRegistry.addName(EmeraldSword, "Emerald Sword");
  202.                 GameRegistry.addRecipe(new ItemStack(Gem.EmeraldSword, 1), new Object [] {" x ", " x ", " y ", 'x', Item.emerald, 'y', Item.stick});
  203.                
  204.                 LanguageRegistry.addName(EmeraldAxe, "Emerald Axe");
  205.                 GameRegistry.addRecipe(new ItemStack(Gem.EmeraldAxe, 1), new Object [] {"xx ", "xy ", " y ", 'x', Item.emerald, 'y', Item.stick});
  206.                
  207.                 LanguageRegistry.addName(EmeraldShovel, "Emerald Shovel");
  208.                 GameRegistry.addRecipe(new ItemStack(Gem.EmeraldShovel, 1), new Object [] {" x ", " y ", " y ", 'x', Item.emerald, 'y', Item.stick});
  209.                
  210.                 LanguageRegistry.addName(EmeraldHoe, "Emerald Hoe");
  211.                 GameRegistry.addRecipe(new ItemStack(Gem.EmeraldHoe, 1), new Object [] {"xx ", " y ", " y ", 'x', Item.emerald, 'y', Item.stick});
  212.                
  213.                 //LanguageRegistry.addName(EmeraldHelmet, "Emerald Helmet");
  214.                 //GameRegistry.addRecipe(new ItemStack(Gem.EmeraldHelmet, 1), new Object [] {"xxx", "x x", 'x', Item.emerald});
  215.                
  216.                 //LanguageRegistry.addName(EmeraldChestplate, "Emerald Chestplate");
  217.                 //GameRegistry.addRecipe(new ItemStack(Gem.EmeraldChestplate, 1), new Object [] {"x x", "xxx", "xxx", 'x', Item.emerald});
  218.                
  219.                 //LanguageRegistry.addName(EmeraldLeggings, "Emerald Leggings");
  220.                 //GameRegistry.addRecipe(new ItemStack(Gem.EmeraldLeggings, 1), new Object [] {"xxx", "x x", "x x", 'x', Item.emerald});
  221.                
  222.                 //LanguageRegistry.addName(EmeraldBoots, "Emerald Boots");
  223.                 //GameRegistry.addRecipe(new ItemStack(Gem.EmeraldBoots, 1), new Object [] {"x x", "x x", 'x', Item.emerald});
  224.                
  225.                 //Pure Gem
  226.                 LanguageRegistry.addName(PurePickaxe, "Pure Pickaxe");
  227.                 GameRegistry.addRecipe(new ItemStack(Gem.PurePickaxe, 1), new Object [] {"xxx", " y ", " y ", 'x', PureGem, 'y', Item.stick});
  228.                
  229.                 LanguageRegistry.addName(PureSword, "Pure Sword");
  230.                 GameRegistry.addRecipe(new ItemStack(Gem.PureSword, 1), new Object [] {" x ", " x ", " y ", 'x', PureGem, 'y', Item.stick});
  231.                
  232.                 LanguageRegistry.addName(PureAxe, "Pure Axe");
  233.                 GameRegistry.addRecipe(new ItemStack(Gem.PureAxe, 1), new Object [] {"xx ", "xy ", " y ", 'x', PureGem, 'y', Item.stick});
  234.                
  235.                 LanguageRegistry.addName(PureShovel, "Pure Shovel");
  236.                 GameRegistry.addRecipe(new ItemStack(Gem.PureShovel, 1), new Object [] {" x ", " y ", " y ", 'x', PureGem, 'y', Item.stick});
  237.                
  238.                 LanguageRegistry.addName(PureHoe, "Pure Hoe");
  239.                 GameRegistry.addRecipe(new ItemStack(Gem.PureHoe, 1), new Object [] {"xx ", " y ", " y ", 'x', PureGem, 'y', Item.stick});                
  240.                
  241.                 //LanguageRegistry.addName(PureHelmet, "Pure Helmet");
  242.                 //GameRegistry.addRecipe(new ItemStack(Gem.PureHelmet, 1), new Object [] {"xxx", "x x", 'x', PureGem});
  243.                
  244.                 //LanguageRegistry.addName(PureChestplate, "Pure Chestplate");
  245.                 //GameRegistry.addRecipe(new ItemStack(Gem.PureChestplate, 1), new Object [] {"x x", "xxx", "xxx", 'x', PureGem});
  246.                
  247.                 //LanguageRegistry.addName(PureLeggings, "Pure Leggings");
  248.                 //GameRegistry.addRecipe(new ItemStack(Gem.PureLeggings, 1), new Object [] {"xxx", "x x", "x x", 'x', PureGem});
  249.                
  250.                 //LanguageRegistry.addName(PureBoots, "Pure Boots");
  251.                 //GameRegistry.addRecipe(new ItemStack(Gem.PureBoots, 1), new Object [] {"x x", "x x", 'x', PureGem});
  252.                
  253.                 //Block data
  254.                 LanguageRegistry.addName(RubyOre, "Ruby Ore");
  255.                 MinecraftForge.setBlockHarvestLevel(RubyOre, "pickaxe", 2);
  256.                 GameRegistry.registerBlock(RubyOre, "RubyOre");
  257.  
  258.                 LanguageRegistry.addName(RubyBlock, "Block of Ruby");
  259.                 MinecraftForge.setBlockHarvestLevel(RubyBlock, "pickaxe", 2);
  260.                 GameRegistry.registerBlock(RubyBlock, "RubyBlock");
  261.                 GameRegistry.addRecipe(new ItemStack(Gem.RubyBlock), "xxx", "xxx", "xxx", 'x', Ruby);
  262.                
  263.                 LanguageRegistry.addName(SapphireOre, "Sapphire Ore");
  264.                 MinecraftForge.setBlockHarvestLevel(SapphireOre, "pickaxe", 2);
  265.                 GameRegistry.registerBlock(SapphireOre, "SapphireOre");
  266.                
  267.                 LanguageRegistry.addName(SapphireBlock, "Block of Sapphire");
  268.                 MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2);
  269.                 GameRegistry.registerBlock(SapphireBlock, "SapphireBlock");
  270.                 GameRegistry.addRecipe(new ItemStack(Gem.SapphireBlock), "xxx", "xxx", "xxx", 'x', Sapphire);
  271.                
  272.                 LanguageRegistry.addName(PureOre, "Pure Ore");
  273.                 MinecraftForge.setBlockHarvestLevel(PureOre, "pickaxe", 3);
  274.                 GameRegistry.registerBlock(PureOre, "PureOre");
  275.                
  276.                 LanguageRegistry.addName(PureBlock, "Pure Block");
  277.                 MinecraftForge.setBlockHarvestLevel(PureBlock, "pickaxe", 2);
  278.                 GameRegistry.registerBlock(PureBlock, "PureBlock");
  279.                 GameRegistry.addRecipe(new ItemStack(Gem.PureBlock), "xxx", "xxx", "xxx", 'x', PureGem);
  280.                
  281.                 //WorldGen data
  282.                 GameRegistry.registerWorldGenerator(new RubyOreWorldGeneration());
  283.                 GameRegistry.registerWorldGenerator(new SapphireOreWorldGeneration());
  284.                 GameRegistry.registerWorldGenerator(new PureOreWorldGeneration());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement