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/19 21:23] – Fixing horrible mistake x2 falseresynctutorial:setup [2019/07/27 09:07] – added link to Kotlin example mod 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.
        * Make sure to update the versions of Minecraft, the mappings and the loader - all of which can be queried through [[https://modmuss50.me/fabric.html|this website]] - to match the versions you wish to target.        * Make sure to update the versions of Minecraft, the mappings and the loader - all of which can be queried through [[https://modmuss50.me/fabric.html|this website]] - to match the versions you wish to target.
        * 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 [[setup:vscode|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''.
-    - Happy modding!+   - If you would like to have the IDE run configs you can run following commands: 
 +       * For IntelliJ IDEA: ''./gradlew idea''.  
 +       * For Eclipse: ''./gradlew eclipse''.  
 +       * If you use VS Code, configurations were generated at the step 3. 
 +   - Happy modding!
  
 ===== Advice ===== ===== Advice =====
tutorial/setup.txt · Last modified: 2024/04/15 00:35 by solidblock