No description
Find a file
ILikePlayingGames b96ba8a968 Small buildscript fixes
- Update devauth
- Fix remapJar not being included when configuring all tasks with type Jar
- Rename intermediate artifacts and folder to better show what they are
2024-07-06 15:34:44 +02:00
.github/workflows Bump gradle to 8.6 2024-02-05 12:23:05 +01:00
gradle/wrapper Bump gradle version 2024-06-15 19:08:13 +02:00
src/main Add an auto discovery plugin for mixins 2024-02-05 13:19:59 +01:00
.gitattributes Bump gradle version 2024-06-15 19:08:13 +02:00
.gitignore Add 1.12 info 2022-08-28 11:55:46 +02:00
build.gradle.kts Small buildscript fixes 2024-07-06 15:34:44 +02:00
gradle.properties Add modid to example gradle.properties 2023-06-30 00:32:15 +02:00
gradlew Bump gradle version 2024-06-15 19:08:13 +02:00
gradlew.bat Bump gradle version 2024-06-15 19:08:13 +02:00
LICENSE Initial commit 2022-07-21 19:46:41 +02:00
log4j2.xml Add log config and fix warnings 2022-09-02 03:35:01 -04:00
make-my-own.sh Add template repository workflow 2023-06-28 13:15:00 +02:00
README.md Add warning about use this template 2024-04-17 11:38:04 +02:00
settings.gradle.kts Add auto provisioning capabilities to gradle 2023-07-10 19:45:56 +02:00

Architectury Loom based template for 1.8.9 forge mods

For other templates, do check out the other branches of this repository

Usage

Check out https://moddev.nea.moe/ for a full tutorial on legacy modding.

Alternatively, read here for a basic overview on how to use this repository.

To get started, Use this template.

Warning

Do not Fork or Clone or Download ZIP this template. If you "use" this template a custom mod id will be generated. You can do that manually using the make-my-own script, if you are on linux. If not, just click the use this template button. If you want to use kotlin or make a 1.12 mod check the "Include all branches" and change the default branch in https://github.com/yourname/yourreponame/branches

This project uses DevAuth per default, so you can log in using your real minecraft account. If you don't need that, you can remove it from the buildscript.

To run the mod you will need two JDKs, one Java 17 jdk and one Java 1.8 jdk. You can download those from here (or use your own downloads).

When you import your project into IntelliJ, you need to set the gradle jvm to the Java 17 JDK in the gradle tab, and the Project SDK to the Java 1.8 JDK. Then click on the sync button in IntelliJ, and it should create a run task called Minecraft Client. If it doesn't then try relaunching your IntelliJ. Warning for Mac users: You might have to remove the -XStartOnFirstThread vm argument from your run configuration. In the future, that should be handled by the plugin, but for now you'll probably have to do that manually.

To export your project, run the gradle build task, and give other people the file build/libs/<modid>-<version>.jar. Ignore the jars in the build/badjars folder. Those are intermediary jars that are used by the build system but do not work in a normal forge installation.

If you don't want mixins (which allow for modifying vanilla code), then you can remove the references to mixins from the build.gradle.kts at the lines specified with comments and the com.example.mixin package.

For those who have not an attention span

Youtube Tutorial

Licensing

This template is licensed under the Unlicense (license copy present in this repository), or alternatively under Creative Commons 1.0 Universal (CC0 1.0), and all contributions and PR to this template are expected to follow this. This means your mod, based on this template can be licensed whatever way you want, and does not need to reference back to this template in any way.