Posted September 16, 201411 yr 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?
September 17, 201411 yr I'd say an over-looked feature. The tool classes system is relatively new... though i have to assume that change was suggested by someone, so there should be at least a few people that use it. (one of my mod adds "drill" tool class, and i didn't propose this system)
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.