documentation:fabric_loom
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
documentation:fabric_loom [2023/04/17 04:48] – [Useful tasks] solidblock | documentation:fabric_loom [2023/07/05 10:34] – modmuss50 | ||
---|---|---|---|
Line 23: | 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 31: | 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), | ||
< | < |
documentation/fabric_loom.txt · Last modified: 2023/12/22 14:39 by modmuss50