public void registerOres() {
    if (ModBlocks.isEnabled(ModBlocks.draconiumOre))
      OreDictionary.registerOre("oreDraconium", ModBlocks.draconiumOre);
    if (ModBlocks.isEnabled(ModBlocks.draconiumBlock))
      OreDictionary.registerOre("blockDraconium", new ItemStack(ModBlocks.draconiumBlock));
    if (ModBlocks.isEnabled(ModBlocks.draconicBlock))
      OreDictionary.registerOre("blockDraconiumAwakened", new ItemStack(ModBlocks.draconicBlock));

    if (ModItems.isEnabled(ModItems.draconiumIngot))
      OreDictionary.registerOre("ingotDraconium", ModItems.draconiumIngot);
    if (ModItems.isEnabled(ModItems.draconiumDust))
      OreDictionary.registerOre("dustDraconium", ModItems.draconiumDust);
    if (ModItems.isEnabled(ModItems.draconicIngot))
      OreDictionary.registerOre("ingotDraconiumAwakened", ModItems.draconicIngot);
    if (ModItems.isEnabled(ModItems.nugget)) {
      OreDictionary.registerOre("nuggetDraconium", ModItems.nuggetDraconium.copy());
      OreDictionary.registerOre("nuggetDraconiumAwakened", ModItems.nuggetAwakened.copy());
    }
  }
  public BlockNiterBed() {
    super(Material.ground);
    setHarvestLevel("shovel", 0);
    setHardness(0.5F);

    setDefaultState(this.blockState.getBaseState().withProperty(AGE, 0));
    setUnlocalizedName(Strings.blockNiterBedName);
    setCreativeTab(HungryAnimals.tabHungryAnimals);
    setTickRandomly(true);
    ModBlocks.register(this);
  }
  public void preInit(FMLPreInitializationEvent event) {
    ConfigHandler.init(event.getSuggestedConfigurationFile());
    registerEventListeners(event.getSide());
    ModBlocks.init();
    ModItems.init();
    ContributorHandler.init();
    registerTileEntities();
    initializeNetwork();
    registerOres();

    DraconicEvolution.reaperEnchant = new EnchantmentReaper(ConfigHandler.reaperEnchantID);
    //
    //		Potion[] potionTypes = null;
    //		LogHelper.info("Expanding Potion array size to 256");
    //
    //		for (Field f : Potion.class.getDeclaredFields()) {
    //			f.setAccessible(true);
    //
    //			try {
    //				if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a")) {
    //					Field modfield = Field.class.getDeclaredField("modifiers");
    //					modfield.setAccessible(true);
    //					modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);
    //					potionTypes = (Potion[]) f.get(null);
    //					final Potion[] newPotionTypes = new Potion[256];
    //					System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);
    //					f.set(null, newPotionTypes);
    //				}
    //			}
    //			catch (Exception e) {
    //				LogHelper.error("Severe error, please report this to the mod author:");
    //				e.printStackTrace();
    //			}
    //		}

    Achievements.addModAchievements();
    LogHelper.info("Finished PreInitialization");
  }