User Tools

Site Tools


tutorial:setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:setup [2019/07/27 09:07] – added link to Kotlin example mod fudgetutorial:setup [2019/10/12 23:21] fudge
Line 14: Line 14:
        * Add any other dependencies you plan to use in ''build.gradle''.        * Add any other dependencies you plan to use in ''build.gradle''.
    - Import the project to your IDE. Follow [[tutorial:vscode_setup|these instructions]] to import the project to Visual Studio Code.    - Import the project to your IDE. Follow [[tutorial:vscode_setup|these instructions]] to import the project to Visual Studio Code.
-   - Run the ''genSources'' Gradle task. If your IDE doesn't have Gradle integration, then run the following command in the terminal: ''./gradlew genSources''. 
    - If you would like to have the IDE run configs you can run following commands:    - If you would like to have the IDE run configs you can run following commands:
-       * For IntelliJ IDEA: ''./gradlew idea''.  +       * For IntelliJ IDEA: ''gradlew idea''.  
-       * For Eclipse: ''./gradlew eclipse''+       * For Eclipse: ''gradlew eclipse''
        * If you use VS Code, configurations were generated at the step 3.        * If you use VS Code, configurations were generated at the step 3.
    - Happy modding!    - Happy modding!
  
 +You can generate the Minecraft sources for reference (since IDEA already has a decompiler this is only useful for searching through the code) :
 + Run the ''genSources'' Gradle task. If your IDE doesn't have Gradle integration, then run the following command in the terminal: ''gradlew genSources'' (or ''./gradlew genSources'' on Linux/MacOS).
 +
 +
 +===== Getting started =====
 +Try [[tutorial:items|adding an item]] or [[tutorial:blocks|a block]]. It’s also a good idea to visit [[tutorial:applychanges|Applying changes without restarting Minecraft]].
 ===== Advice ===== ===== Advice =====
  
Line 32: Line 37:
  
 Sometimes, when importing the Gradle project into an IDE, the assets might not download correctly. In this case, run the ''downloadAssets'' task manually - either using IDE's built-in menu or by simply running ''gradlew downloadAssets''. Sometimes, when importing the Gradle project into an IDE, the assets might not download correctly. In this case, run the ''downloadAssets'' task manually - either using IDE's built-in menu or by simply running ''gradlew downloadAssets''.
 +
tutorial/setup.txt · Last modified: 2024/04/15 00:35 by solidblock