Skip to content

Setting Up Your Dev Enviroment

MashXP edited this page Oct 24, 2023 · 4 revisions

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 -

How to setup your Dev-ing environment!


  • Disclaimer: This tutorial is for starting a fresh mod project, if you want to contribute to DTN instead. Click here!

Difficulty: 🦴🦴🦴


  • 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).

    image

  • 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.

    jtr

  • Extract all of the content of the JDK to a folder of your choice.

  • Open the folder with VSC.

    yiguf You'll see this at the bottom right corner.

  • Open New Terminal.

vuftuk

  • Run ./gradlew build and let it finish.

    yfulf

  • Run ./gradlew genVSCodeRuns. k gii

  • 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.

    image

  • 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.


See more: https://docs.minecraftforge.net/en/1.20.x/

Clone this wiki locally