Posted July 16, 20169 yr Here is my custom sword class: import com.terraweapons.main.TerraWeapons; import net.minecraft.item.ItemSword; public class TerraSword extends ItemSword { public TerraSword(String name, ToolMaterial material) { super(material); this.setUnlocalizedName(name); this.setCreativeTab(TerraWeapons.tabTerraWeapons); } } Here is my ToolMaterial code: public static ToolMaterial material1 = EnumHelper.addToolMaterial("material1", 3, 100, 2.0F, 0F, 20); And here I register my weapons: public static Item weapon1 = new TerraSword("weapon1", ToolMaterials.material1);
July 16, 20169 yr I explain this here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.