Topic category: Advanced modding
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:
Then add this code:
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!