Can I set a tool's harvest level higher than 5?

Started by crazyflower on

Topic category: Help with MCreator software

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I set a tool's harvest level higher than 5?

I can set a block's harvest level as high as I need. A tool wil only go as high as 5. Is it possible to set it higher and if so how would I do it?

I am adding a number of new ores and the harvest levels of th block will go up to nine. I need to be able to add my own pickaxes with harvest levels to match.

Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In your workspace, highlight
Thu, 09/29/2016 - 18:14

In your workspace, highlight your pickaxe item and select "edit code of selected code element" on the left menu bar. Look for the harvest level in the items source code and it should be followed by a value of "5" that you can then change to "9", then recompile your code and voila, it should work in theory. Just know that if you use mCreators item creation GUI to edit the pickaxe item again after youve edited the source code, it will change the value back to the mCreator default of 5 and you will have to repeat the process.

Let me know if that works! 

--for mCreator 1.7.0 for minecraft 1.10.2

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tride editing an exisiting
Thu, 09/29/2016 - 19:11

I tride editing an exisiting pickaxe and adding a new one and editing that one. Neither one seemed to work. 

What I did was change the 1 to a 9 one this line:

Item.ToolMaterial enumt = EnumHelper.addToolMaterial("FELSLATEPICK", 1, 100, 4F, 5, 2);

Is that the right number to change or am I mistaken?

Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After extensive googling and
Thu, 09/29/2016 - 20:14

After extensive googling and searching the mCreator forums, it appears this may be a bug with mCreator itself. See, the harvest level in minecraft only goes to 5 (wood, stone, iron, gold, diamond) and apparently mCreator doesnt like exceeding that level either, even though it allows you to set custom harvest levels for blocks. 

I attempted to replicate your scenario, but even changing the pickaxes harvest level in the GUI doesnt appear to change the code in any way.

Perhaps Nuparu has found a simple code fix for this, and will bless us with his infinite wisdom o:

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem is not in the tool ,
Thu, 09/29/2016 - 21:32

Problem is not in the tool , but in the block. Simply , you have propably set as the material of your block "ground". Material.ground does not need any tools , and the material has larger priority than the block's harvest level declaration. So simply - try change the material to for example "rock".

Oh , and thank that you thinks that about me , but my wisdom is as finite as RAM in my notebook , and to be honest when I start my mod , it is overloaded on 90+% :D

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to do this for bedrock…
Sat, 08/03/2024 - 23:42

how to do this for bedrock edition addons? and maybe decimal or negative values if that's possible?