documentation:fabric_loom
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:fabric_loom [2023/02/04 23:25] – Show how to remove a built-in run configuration caoimhe | documentation:fabric_loom [2023/12/22 14:39] (current) – Remove confusion around loom extracting nested jars. modmuss50 | ||
---|---|---|---|
Line 11: | Line 11: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
Line 22: | Line 23: | ||
dependencies { | dependencies { | ||
implementation project(path: | implementation project(path: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | If you are using splitsource sets in a multi-project build, you will also need to add a dependency for the other projects client sourceset. | ||
+ | |||
+ | < | ||
+ | dependencies { | ||
+ | clientImplementation project(": | ||
} | } | ||
</ | </ | ||
Line 30: | Line 39: | ||
The following snippet from a build.gradle file shows how you can enable this for your mod. As your mod will now be split across two sourcesets, you will need to use the new DSL to define your mods sourcesets. This enables Fabric Loader to group your mods classpath together. This is also useful for some other complex multi-project setups. | The following snippet from a build.gradle file shows how you can enable this for your mod. As your mod will now be split across two sourcesets, you will need to use the new DSL to define your mods sourcesets. This enables Fabric Loader to group your mods classpath together. This is also useful for some other complex multi-project setups. | ||
+ | |||
+ | Minecraft 1.18 (1.19 recommended), | ||
< | < | ||
Line 44: | Line 55: | ||
</ | </ | ||
- | ==== Mutli project Optimisation ==== | + | ==== Multi project Optimisation ==== |
- | If your Gradle project has many subprojects that use the same Minecraft version such as Fabric-API, starting with Loom 1.1 you can now opt-in to advanced optimistations. Adding < | + | If your Gradle project has many subprojects that use the same Minecraft version such as Fabric-API, starting with Loom 1.1 you can now opt-in to advanced optimistations. Adding < |
==== Options ==== | ==== Options ==== | ||
Line 237: | Line 248: | ||
==== Resolving issues ==== | ==== Resolving issues ==== | ||
- | Loom and/or gradle can sometimes fail due to corrupted cache files. Running '' | + | Loom and/or gradle can sometimes fail due to corrupted cache files. Running '' |
==== Development environment setup ==== | ==== Development environment setup ==== | ||
Line 251: | Line 262: | ||
- Adds dependencies of Minecraft. | - Adds dependencies of Minecraft. | ||
- Downloads Minecraft assets. | - Downloads Minecraft assets. | ||
- | - Processes and includes mod-augmented dependencies | + | - Processes and includes mod-augmented dependencies. |
==== Caches ==== | ==== Caches ==== | ||
Line 264: | Line 275: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
documentation/fabric_loom.1675553118.txt.gz · Last modified: 2023/02/04 23:25 by caoimhe