I'm trying to make a mod in minecraft (1.12.x) in eclipse, but i'm having a lot of problems with it. Many I managed to solve them but this problem not:
Unresolved dependency: net.minecraftforge:forge:1.12.2-14.23.5.2859_mapped_snapshot_20171013-1.12
The error is with build.gradle in line 0. I didn't change anything inside the file path.
Anyone can help me?
Assuming you have git installed:
Clone the Minecraft Forge Github repository
git clone https://github.com/MinecraftForge/MinecraftForge.git
Import project into eclipse
- In eclipse, go to
File --> Import
.
- In the Import wizard, select "Existing Projects into Workspace" and click Next.
- In the "Select root directory" field, browse to the directory where you cloned the Minecraft Forge repository.
- Eclipse should automatically detect the Minecraft Forge project. If it does not, you can manually select it by clicking "Browse" and navigating to the "build" directory within the Minecraft Forge repository.
- Click "Finish" to import the project into Eclipse.
Setting up minecraft
- Right-click on the Minecraft Forge project in the Package Explorer and select "Properties".
- In the Properties window, go to "Java Build Path" and click on the "Libraries" tab.
- Click on the "Add External JARs" button and navigate to the "lib" directory within the Minecraft Forge repository.
- Select all of the JAR files in the "lib" directory and click "Open".
- Click "OK" to close the Properties window.
Running Minecraft
- Right-click on the Minecraft Forge project in the Package Explorer and select "
Run As --> Java Application
".
Eclipse will build and run the Minecraft Forge project.
For this guide, I am assuming that you have everything like JDKs configured correctly.