package com.gameminers.kahur;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid="kahur",name="Kahur",version="0.1")
public class KahurMod {
	public static ItemKahur KAHUR;
	public static CreativeTabs creativeTab = new CreativeTabs("kahur") {
		
		@Override
		public Item getTabIconItem() {
			return KAHUR;
		}
	};
	@EventHandler
	public void onInit(FMLInitializationEvent e) {
		KAHUR = new ItemKahur();
		GameRegistry.registerItem(KAHUR, "kahur");
		for (WoodColor body : WoodColor.values()) {
			for (WoodColor drum : WoodColor.values()) {
				for (MineralColor pump : MineralColor.values()) {
					ItemStack kahur = new ItemStack(KAHUR);
					NBTTagCompound tag = new NBTTagCompound();
					tag.setString("KahurBodyMaterial", body.name());
					tag.setString("KahurDrumMaterial", drum.name());
					tag.setString("KahurPumpMaterial", pump.name());
					kahur.setTagCompound(tag);
					GameRegistry.addRecipe(kahur,
							"S  ",
							"MP ",
							" /S",
							'S', new ItemStack(Blocks.planks, 1, body.ordinal()),
							'P', new ItemStack(Blocks.planks, 1, drum.ordinal()),
							'M', pump.getMaterial(),
							'/', Items.stick);
					GameRegistry.addRecipe(kahur,
							"  S",
							" PM",
							"S/ ",
							'S', new ItemStack(Blocks.planks, 1, body.ordinal()),
							'P', new ItemStack(Blocks.planks, 1, drum.ordinal()),
							'M', pump.getMaterial(),
							'/', Items.stick);
				}
			}
		}
	}
}

@@ -504,16 +504,1235 @@
 urMod %7B%0A
+%09/*%0A%09 * Damage is calculated based off of two values: Mass and Magic.%0A%09 * %0A%09 * Mass is determined by the depth and contents of the crafting chain.%0A%09 * An item with no way to craft it has a mass of 1.%0A%09 * For example, a diamond has a mass of 1. A diamond block has a mass of 9.%0A%09 * A gold ingot has a mass of 9 due to the nugget recipe, and a gold block has a mass of 81.%0A%09 * Crafting recipes involving only one item are skipped. As such, a gold nugget has a mass of 1 instead of Infinity.%0A%09 * Crafting trees deeper than 12 entries will be truncated to 12.%0A%09 * %0A%09 * Magic is determined by enchantments and enchantment glow.%0A%09 * If the item hasEffect, but no enchantments, magic += 12. (Assume it's a special item.)%0A%09 * For every enchantment on the item, magic += (1 + enchantmentLevel)%0A%09 * If the item has the generic.attackDamage attribute, round it down to an integer and add half of that to the magic.%0A%09 * For every other attribute, add attributeValue/8, rounded down, to the magic.%0A%09 * %0A%09 * Damage is equal to mass + (magic*2).%0A%09 * %0A%09 * Drop chance is determined by mass and magic.%0A%09 * For a given item, it's chance of dropping is 1 in max(1, 50-(mass+magic)).%0A%09 * Probably not the best method. Needs research.%0A%09 */%0A
 %09public 

Add plans