- Java 100%
neo_version is not only the compile target: neoforge.mods.toml derives the
neoforge dependency range from it as "[${neo_version},)". Built against
21.1.250 the mod therefore declared [21.1.250,), and packpack runs 21.1.233
in all three places it pins one - pack.toml, mmc-pack.json and the
Pterodactyl egg. FML does not warn about an unsatisfied required dependency;
it refuses to load the mod, which is an incompatible-dependency screen on the
client and a startup failure on the server.
Lowering the target rather than widening the range by hand, because the two
can disagree: compiling against 250 while claiming 233 would let a
post-233 API through to a NoSuchMethodError at runtime. Building against 233
makes the compiler answer the question instead, and it did - the build is
clean, so nothing here needed anything newer.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
||
|---|---|---|
| gradle/wrapper | ||
| src/main | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| README.md | ||
| settings.gradle | ||
| TEMPLATE_LICENSE.txt | ||
Installation information
This template repository can be directly cloned to get you started with a new mod. Simply create a new repository cloned from this one, by following the instructions provided by GitHub.
Once you have your clone, simply open the repository in the IDE of your choice. The usual recommendation for an IDE is either IntelliJ IDEA or Eclipse.
If at any point you are missing libraries in your IDE, or you've run into problems you can
run gradlew --refresh-dependencies to refresh the local cache. gradlew clean to reset everything
{this does not affect your code} and then start the process again.
Mapping Names:
By default, the MDK is configured to use the official mapping names from Mojang for methods and fields in the Minecraft codebase. These names are covered by a specific license. All modders should be aware of this license. For the latest license text, refer to the mapping file itself, or the reference copy here: https://github.com/NeoForged/NeoForm/blob/main/Mojang.md
Additional Resources:
Community Documentation: https://docs.neoforged.net/
NeoForged Discord: https://discord.neoforged.net/