[TUTORIAL] How to fix Harvest Level for Blocks on 2021.1 Snapshot

Started by GamesofFreak on Sat, 02/13/2021 - 18:08

Topic category: Advanced modding

Last seen on 14:28, 10. Apr 2021
Joined Feb 2018

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to fix Harvest Level for Blocks on 2021.1 Snapshot
Tue, 02/23/2021 - 09:34 (edited)

Hello Guys,

today I want to show you how you can solve the harvest level problem in MCreator 2021.1(03117).

But what exactly is this harvest level problem?

For example, if you set the harvest level of your block to 4, so that the block can only be mined for Netherite tools (so that the block drops) you can use all other tools to mine and you also get the drop that you should only get from Netherite.

Why is this problem?

Quite simply, the code of your block (.java file) is missing a certain code that leads to this problem.

How do you fix the problem?

Go to the mod element of your block and select 'Edit Code' and then click on the only .java file.

Then you look for this line:

Harvest Level Line

Then add this code:


 exactly after:


Then press CTRL+S to save the code.

To save Mod Element Codes you need to lock the Code.

I hope this Tutorial helped you out!

Edited by GamesofFreak on Tue, 02/23/2021 - 09:34