package net.unladenswallow.minecraft.emeraldmaterial;

import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.common.util.EnumHelper;

public class EmeraldMaterials {

	public static ToolMaterial toolMaterial = EnumHelper.addToolMaterial(
			"EmeraldTool",
			3,
			1000,
			10.0f,
			2.5f,
			30
			);

	public static ToolMaterial broadswordMaterial = EnumHelper.addToolMaterial(
			"EmeraldWeapon",
			0,
			1000,
			10.0f,
			4.0f,
			30
			);

}

@@ -74,29 +74,99 @@
 ft.i
-tem.Item.ToolMaterial
+nit.Items;%0Aimport net.minecraft.item.Item.ToolMaterial;%0Aimport net.minecraft.item.ItemStack
 ;%0Aim
@@ -525,12 +525,151 @@
 30%0A%09%09%09);
+%0A%09static %7B%0A%09%09toolMaterial.setRepairItem(new ItemStack(Items.emerald));%0A%09%09broadswordMaterial.setRepairItem(new ItemStack(Items.emerald));%0A%09%7D
 %0A%0A%7D%0A

Make items and armor repairable