tutorial:setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:setup [2023/04/23 08:31] – [java.lang.ClassNotFoundException: net.fabricmc.loader.impl.launch.knot.KnotClient / java.lang.TypeNotPresentException: Type net/minecraft/util/Identifier not present] solidblock | tutorial:setup [2024/04/15 00:35] (current) – update solidblock | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * A Java Development Kit (JDK) for Java 17 (recommended) or newer. Visit [[https:// | + | * A Java Development Kit (JDK) for Java 21 (recommended |
* If you are professional, | * If you are professional, | ||
* Any Java IDE, for example [[https:// | * Any Java IDE, for example [[https:// | ||
Line 9: | Line 9: | ||
===== Mod Setup ===== | ===== Mod Setup ===== | ||
==== Manual Steps ==== | ==== Manual Steps ==== | ||
- | - Copy the starting files from [[https:// | + | - Copy the starting files from [[https:// |
- Edit '' | - Edit '' | ||
* Make sure to set '' | * Make sure to set '' | ||
Line 48: | Line 48: | ||
=== Visual Studio Code === | === Visual Studio Code === | ||
- | If you are using VSCode, please follow [[tutorial:vscode_setup|these instructions]]. | + | If you are using VSCode, please follow [[tutorial:setup: |
===== Generating Minecraft Sources ===== | ===== Generating Minecraft Sources ===== | ||
Line 70: | Line 70: | ||
* Keep up with the latest Loom version (which is defined in '' | * Keep up with the latest Loom version (which is defined in '' | ||
* Keep up with the latest Gradle version, which can be defined in '' | * Keep up with the latest Gradle version, which can be defined in '' | ||
- | * Different Gradle versions require different Java versions. Usually latest Gradle supports the recommended Java version 17. | + | * Different Gradle versions require different Java versions. |
* If you're developing mods for old version Minecraft, besides changing '' | * If you're developing mods for old version Minecraft, besides changing '' | ||
* Don't hesitate to ask questions! We're here to help you and work with you to make your dream mod a reality. | * Don't hesitate to ask questions! We're here to help you and work with you to make your dream mod a reality. | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== "no usages" | ||
+ | After running the '' | ||
==== Missing sounds ==== | ==== Missing sounds ==== | ||
Sometimes, when importing the Gradle project into an IDE, the assets might not download correctly. In this case, run the '' | Sometimes, when importing the Gradle project into an IDE, the assets might not download correctly. In this case, run the '' | ||
+ | |||
+ | ==== Could not find or load class net.fabricmc.devlaunchinjector.Main: | ||
+ | It seems to be a bug of Intellij IDEA since a recent update 2023.2. To fix, just delete the `.idea` folder entirely and then restart Intellij IDEA. The module will be reconstructed. You may need to specify Java versions again. If after restarting there is no run config, you can run `gradle ideaSyncTask` then check it again. | ||
==== java.lang.ClassNotFoundException: | ==== java.lang.ClassNotFoundException: |
tutorial/setup.1682238705.txt.gz · Last modified: 2023/04/23 08:31 by solidblock