Jump to content

[1.7.10][Solved]How to make tools or armor with vanilla stuff?


Recommended Posts

Posted

How to make and tool or armor with emerald i maked it like this but i get error :

 

public static Item EmeraldAxe = new EmeraldAxeClass(Items.emerald).setUnlocalizedName("EmeraldAxe");

 

Yes i register it and maked class

please help.

Posted

The Emerald is not a valid "Tool Item" you should use the existing tiers e.g. Diamond and just use emeralds in the recipe...

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

In 1.7.2, I create custom tool tiers like this:

ToolMaterial t = EnumHelper.addToolMaterial("material_name", harvestLevel, maxUses, efficiency, damage, enchantability);

 

To create the tool:

CustomAxe axe = new CustomAxe(t);

 

There might be a similar method in 1.7.10.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.