-
Notifications
You must be signed in to change notification settings - Fork 4
Setting Up Your Dev Enviroment
To get started modding or working on the source code, a crucial part is to set up a good dev environment so that you can utilize its features and tools to better assist in the code. - DashieDev -
- Disclaimer: This tutorial is for starting a fresh mod project, if you want to contribute to DTN instead. Click here!
Difficulty: 🦴🦴🦴
-
Required Software:
- Visual Studio Code (free). https://code.visualstudio.com/download
-
Required Knowledge:
- Need to have basic coding knowledge.
-
First, download Forge (the recommended version): https://files.minecraftforge.net/net/minecraftforge/forge/
-
Pick a folder which is your workspace folder (Right click the folder and Open with VSCode later) then place all of the content here. Make sure your folder's name isn't containing special symbols
-
Setting up VSC-Java environment:
- Extension Pack for Java.
- Gitlens (Optional).
- Gradle for Java (Optional).
-
Download Java Development Kit (JDK): https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
-
Go to Terminal (Windows Powershell) and type
java --version
. -
Extract all of the content of the JDK to a folder of your choice.
-
Open the folder with VSC.
You'll see this at the bottom right corner.
-
Open New Terminal.
-
Run
./gradlew build
and let it finish. -
Run
./gradlew genVSCodeRuns
. -
If you done it correctly, there should be a
.vscode
folder in your project. -
Go to settings.json (shortcut
Ctrl+P
) -
"java.gradle.buildServer.enabled": "off". Remember to add a comma at the end of the line above.
-
Reload your project. (there should be a notification board pops up at the bottom right corner.)
-
Ctrl+P
+> Java: Clean Java Language Server Workspace
. -
Press
f5
. -
After this step, you should see Minecraft boots up.
Behaviors
- AI Improvements
- Configuration
- Animation
- Basic Core Stats
- Leveling Systems
- Commands
- Immortal Dogs
- Playing Tag (Documentation in Progress)
Ah...Amaterasu. Origin of all that is good and mother to us all. - Okami
Behavior
- AI Improvements
- Configuration
- Animation
- Basic Core Stats
- Leveling Systems
- Commands
- Immortal Dogs
- Playing Tag (Documentation in Progress)