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 revisionBoth sides next revision
tutorial:setup [2019/11/16 19:14] – fix another curse fudgetutorial:setup [2020/02/21 11:13] – Reorganize instructions and add a step for IDEA mkpoli
Line 6: Line 6:
    * Any IDE, for example [[https://www.jetbrains.com/idea/download/#section=windows|Intellij IDEA]]    * Any IDE, for example [[https://www.jetbrains.com/idea/download/#section=windows|Intellij IDEA]]
  
-===== Steps ===== +===== General Steps =====
    - 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.    - 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'':
Line 13: Line 12:
        * 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 build.gradle file to your IDE. Follow [[tutorial:vscode_setup|these instructions]] to import the project to Visual Studio Code. +   - Import the build.gradle file to your IDE. You may refer to next section for specific IDE's.
-   - For IntelliJ, press ''Add Configuration...'' and then select ''Minecraft Client'' and press ''OK''     For Eclipse, If you would like to have the IDE run configs you can run ''gradlew eclipse''.+
    - 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) : 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).  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).
 +   
 +==== IntelliJ IDEA ====
 +If you are using IntelliJ IDEA by JetBrains, please follow these steps:
 +    - In order to run/debug your project, go to menu ''Run -> Edit Configurations...''. In ''Run/Debug Configuration'' dialog, find ''Application > Minecraft Client'' and change ''Use classpath of module'' form ''[ProjectName]'' to ''[ProjectName].main'', then change for ''Application > Minecraft Server'' as well.
 +    - Happy Modding!
 +
 +==== Eclipse ====
 +If you are using Eclipse and you would like to have the IDE run configs you can run ''gradlew eclipse''.
  
 +==== Visual Studio Code ====
 +If you are using VSCode by Microsoft, please follow [[tutorial:vscode_setup|these instructions]]
  
 ===== Getting started ===== ===== Getting started =====
tutorial/setup.txt · Last modified: 2024/04/15 00:35 by solidblock