drafts:client_server_split
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
drafts:client_server_split [2023/09/13 19:13] – ↷ Page moved from client_server_split to drafts:client_server_split nebelnidas | drafts:client_server_split [2023/09/22 17:31] (current) – modmuss50 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [WIP] | + | ~~REDIRECT>documentation: |
- | + | ||
- | **Make sure you are at least using Fabric Loader version 0.14, and Fabric Loom version 0.12.** | + | |
- | + | ||
- | To split split and common code, add the following to your build script. | + | |
- | + | ||
- | <code groovy> | + | |
- | loom { | + | |
- | splitEnvironmentSourceSets() | + | |
- | + | ||
- | mods { | + | |
- | your_mod_id_goes_here { | + | |
- | sourceSet sourceSets.main | + | |
- | sourceSet sourceSets.client | + | |
- | } | + | |
- | } | + | |
- | + | ||
- | /* other stuff */ | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | Then all client-only code can go in '' | + |
drafts/client_server_split.1694632437.txt.gz · Last modified: 2023/09/13 19:13 by nebelnidas