Jump to content

Item toolClasses


ShetiPhian

Recommended Posts

I know by default the tool classes that exist are 'pickaxe', 'axe', 'shovel', with harvest levels 0 (wood, gold), 1 (stone), 2 (iron), 3 (diamond)

 

Why don't mods expand this with other tools? are we not to do so?

 

 

Background:

I have a block that is rotatable on right-click with a wrench, so Block.rotateBlock works perfectly for this.

It also dismantles with sneak + left-click with a wrench, so I check Item.getHarvestLevel if it is a "wrench"

 

In my own wrench tool I set the tool class to "wrench" (harvest 0)

 

Every thing works perfectly,

But when testing wrenches added by other mods they do nothing, after looking through their code none have set their wrenches with a custom tool class.

 

To go another step further I have yet to see any mod adding custom toolClasses (some do set harvest levels higher then 3)

 

Now I'm wondering, is setting a custom tool class an over-looked unused feature, or a modding faux pas?

Link to comment
Share on other sites

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.