package mods.themike.modjam;

import mods.themike.modjam.blocks.BlockCarvingStone;
import mods.themike.modjam.blocks.BlockDecoration;
import mods.themike.modjam.blocks.BlockGhostBlock;
import mods.themike.modjam.blocks.BlockMagebrickLamp;
import mods.themike.modjam.blocks.BlockSlabs;
import mods.themike.modjam.items.ItemMulti;
import mods.themike.modjam.items.ItemPapyrus;
import mods.themike.modjam.items.ItemRune;
import mods.themike.modjam.items.ItemStaff;
import mods.themike.modjam.items.ToolReaper;
import net.minecraftforge.common.Configuration;

public class ModJamConfiguration {

	public static void init(Configuration config) {
		
		ModJam.carvingStone = new BlockCarvingStone(config.getBlock("Carving Stone", 1100).getInt(1100));
		ModJam.decoration = new BlockDecoration(config.getBlock("Decorative Blocks", 1101).getInt(1101));
		ModJam.slabs = new BlockSlabs(config.getBlock("Decorative Slabs", 1102).getInt(1102));
		
		ModJam.ghost = new BlockGhostBlock(config.getBlock("Ghost Block", 1103).getInt(1103));
		ModJam.lamp = new BlockMagebrickLamp(config.getBlock("Magebrick Lamp", 1104).getInt(1104));
		
		ModJam.item = new ItemMulti(config.getItem("Main Items", 5500).getInt(5500));
		ModJam.runes = new ItemRune(config.getItem("Runes", 5501).getInt(5501));
		ModJam.scroll = new ItemPapyrus(config.getItem("Papyrus Scroll", 5502).getInt(5502));
		ModJam.staff = new ItemStaff(config.getItem("Staffs", 5503).getInt(5503));
		ModJam.reaper = new ToolReaper(config.getItem("Reaper", 5504).getInt(5504));
		
	}
	
}

package mods.themike.modjam;

import mods.themike.modjam.blocks.BlockCarvingStone;
import mods.themike.modjam.blocks.BlockDecoration;
import mods.themike.modjam.blocks.BlockGhostBlock;
import mods.themike.modjam.blocks.BlockMagebrickLamp;
import mods.themike.modjam.blocks.BlockSlabs;
import mods.themike.modjam.items.ItemMulti;
import mods.themike.modjam.items.ItemPapyrus;
import mods.themike.modjam.items.ItemRune;
import mods.themike.modjam.items.ItemStaff;
import mods.themike.modjam.items.ToolReaper;
import net.minecraftforge.common.Configuration;

public class ModJamConfiguration {

	public static void init(Configuration config) {
		
		ModJam.carvingStone = new BlockCarvingStone(config.getBlock("Carving Stone", 1100).getInt(1100));
		ModJam.decoration = new BlockDecoration(config.getBlock("Decorative Blocks", 1101).getInt(1101));
		ModJam.slabs = new BlockSlabs(config.getBlock("Decorative Slabs", 1102).getInt(1102));
		
		ModJam.ghost = new BlockGhostBlock(config.getBlock("Ghost Block", 1103).getInt(1103));
		ModJam.lamp = new BlockMagebrickLamp(config.getBlock("Magebrick Lamp", 1104).getInt(1104));
		
		ModJam.item = new ItemMulti(config.getItem("Main Items", 5500).getInt(5500));
		ModJam.runes = new ItemRune(config.getItem("Runes", 5501).getInt(5501));
		ModJam.scroll = new ItemPapyrus(config.getItem("Papyrus Scroll", 5502).getInt(5502));
		ModJam.staff = new ItemStaff(config.getItem("Staffs", 5503).getInt(5503));
		ModJam.reaper = new ToolReaper(config.getItem("Reaper", 5504).getInt(5504));
		
		config.save();
		
	}
	
}

Save the configuration