If you don't know how to not call a method statically when the method isn't static, I highly suggest you learn some basic Java first, and then come back to modding.
Actually this is exactly what I did. "Import existing project into workspace". But this creates a new project in the eclipse workspace, so I called it like this.
Then why don't you have your code in src/main/java
?
You don't have to import the forge library. You just have to run
gradlew setupDecompWorkspace eclipse
and you import your project in eclipse. Done. No need for a seperate 'Forge' project.
1) Make a custom ToolMaterial using
EnumHelper.addToolMaterial(...)
(parameters should be self-explanatory).
2) Make you item class extend ItemPickaxe, passing in your own ToolMaterial.
3) Make sure you register your item as a normal item.
4) Done.
int posX = chunkX + random.nextInt(16);
int posY = random.nextInt(64);
int posZ = chunkZ + random.nextInt(16);
You have to multiply chunkX and chunkZ with 16.