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 [2020/04/20 20:15] – [Manual Steps] Add additional fix for Run Configurations not displaying 2xsaikotutorial:setup [2020/08/09 12:49] – [Generator] swapped with MCDev telepathicgrunt
Line 19: Line 19:
  
 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 === === IntelliJ IDEA ===
Line 32: Line 32:
     - Open the 'Gradle Settings' dialog from the Gradle tab.     - Open the 'Gradle Settings' dialog from the Gradle tab.
     - Change the 'Build and run using' and 'Run tests using' fields to 'IntelliJ IDEA'.     - Change the 'Build and run using' and 'Run tests using' fields to 'IntelliJ IDEA'.
-    - Go to File -> Project Structure -> Project and set 'Project compiler output' to the 'out' subdirectory of your project, if it isn't set yet. This directory doesn't have to exist, IDEA will create it when compiling the project for the first time. (Tip: Use the 'Project Directorybutton in the directory select dialog to quickly jump to your project directory.)+    - Go to File -> Project Structure -> Project and set 'Project compiler output' to ''$PROJECT_DIR$/out''.
  
 Unfortunately, it is currently impossible to set an IDE-wide default for the 'Build and run using' and 'Run tests using' options, so these steps have to be repeated for every new project. Unfortunately, it is currently impossible to set an IDE-wide default for the 'Build and run using' and 'Run tests using' options, so these steps have to be repeated for every new project.
Line 42: Line 42:
 If you are using VSCode by Microsoft, please follow [[tutorial:vscode_setup|these instructions]] If you are using VSCode by Microsoft, please follow [[tutorial:vscode_setup|these instructions]]
  
-==== Generator ==== +==== MinecraftDev IntelliJ IDEA Plugin ==== 
-You may also use [[https://github.com/ExtraCrafTX/GeneratorFabricMod|GeneratorFabricMod]] by ExtraCrafTXa convenient tool to automatically generate new fabric mods from templateFollow these steps: +If you are using IntelliJ IDEA you can use the MinecraftDev pluginThis plugin adds support for automatically generating Fabric projects as well as some mixin related features like inspections, generating accessors/shadow fieldsand the Copy Mixin Target Reference context menu option
-  - Download latest release of GeneratorFabricMod [[https://github.com/ExtraCrafTX/GeneratorFabricMod/releases|here]] and extract them. +The plugin can be found [[https://plugins.jetbrains.com/plugin/8327|in the IntelliJ plugin repository]], so you can install it using IntelliJ's internal plugin browser by navigating to File → Settings → Pluginsthen clicking the Marketplace tab and searching for Minecraft.
-  - Make a new directorythen run a command shell there and type ''path/to/GeneratorFabricMod/bin/GeneratorFabricMod''+
-  - After letting it get its dependenciesfollow the instructions and input required information. +
-  - You're now done, just open the project folder with in your IDE.+
  
 ==== MinecraftDev IntelliJ IDEA Plugin ==== ==== MinecraftDev IntelliJ IDEA Plugin ====
-If you are using IntelliJ IDEA you can use Earthcomputer's experimental fork of the MinecraftDev plugin. This fork adds support for automatically generating Fabric projects as well as some mixin related features like inspections and generating accessors. +If you are using IntelliJ IDEA you can use the MinecraftDev plugin. This plugin adds support for automatically generating Fabric projects as well as some mixin related features like inspectionsgenerating accessors/shadow fields, and the Copy Mixin Target Reference context menu option
-You can follow [[https://github.com/Earthcomputer/MinecraftDev/blob/dev_new/readme.md#installation|these instructions]] to install the plugin.+The plugin can be found [[https://plugins.jetbrains.com/plugin/8327|in the IntelliJ plugin repository]], so you can install it using IntelliJ's internal plugin browser by navigating to File → Settings → Plugins, then clicking the Marketplace tab and searching for Minecraft.
  
 ===== Getting started ===== ===== Getting started =====
tutorial/setup.txt · Last modified: 2024/04/15 00:35 by solidblock