Development workspace setup for Minecraft 1.17
This guide is intended for people wishing to help with the creation of the mod. It assumes you know the basics of git and java. Guide aimed on InteliJ IDEA. Sorry, Eclipse is not covered but should be pretty similar.
Requirements
- Java Development Kit version 16 (https://www.oracle.com/java/technologies/javase-jdk16-downloads.html)
- InteliJ IDEA, you can also use Eclipse but that isn't covered. (https://www.jetbrains.com/idea/download/#section=windows)
- This guide covers MS Windows setup. Sorry.
Setup Tech Reborn
RebornCore is now part of Tech Reborn repository. Thus there is no need for a separate step for RC setup anymore.
- Open InteliJ IDEA and Create a new project from Source control
- Clone Tech Reborn repo (https://github.com/TechReborn/TechReborn.git). 1.17 branch is default at the time of writing. Change branch if it is not so.
- Gradle refresh will fail if you haven't update Gradle setting to use Java 16 yet. Change Gradle JVM and refresh Gradle project. Gradle project refresh will take several minutes, so you can grab a cup of coffee while it is working. You may also need to invalidate cache in IDEA after that step.
- Generate sources for dependencies
- Open the
Gradle Settings
dialog from the Gradle tab. Change theBuild and run using
andRun tests using
fields to 'IntelliJ IDEA'. - Go to
File → Project Structure → Project
and setProject compiler output
to 'out' folder inside project folder