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/05/23 12:54] – [Steps] falseresynctutorial:setup [2019/08/03 22:24] – added “getting started” segment fudge
Line 3: Line 3:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-   * JDK 8+ +   A Java Development Kit (JDK) for Java or newer [[https://adoptopenjdk.net/]] 
-   * Any IDE, for example IntelliJ IDEA+   * Any IDE, for example [[https://www.jetbrains.com/idea/download/#section=windows|Intellij IDEA]]
  
 ===== Steps ===== ===== Steps =====
  
-   - Copy the starting files from [[https://github.com/FabricMC/fabric-example-mod/|fabric-example-mod]], excluding the ''LICENSE'' and ''README.md'' files - as those apply to the template itself, not necessarily to your mod.+   - Copy the starting files from [[https://github.com/FabricMC/fabric-example-mod/|fabric-example-mod]] (or from [[https://github.com/natanfudge/fabric-example-mod-kotlin|the Kotlin version]], if you wish to use Kotlin,excluding the ''LICENSE'' and ''README.md'' files - as those apply to the template itself, not necessarily to your mod.
    - Edit ''gradle.properties'':    - Edit ''gradle.properties'':
        * Make sure to set ''archives_base_name'' and ''maven_group'' to your preferred values.        * Make sure to set ''archives_base_name'' and ''maven_group'' to your preferred values.
Line 15: Line 15:
    - 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''.    - 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 an 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''
Line 21: Line 21:
    - Happy modding!    - Happy modding!
  
 +===== 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 34:
  
 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