This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:get_started [2022/09/16 13:57] – created shedaniel | plugin:get_started [2024/05/02 11:52] (current) – Use new generator website shedaniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Get Started With Architectury ====== | ====== Get Started With Architectury ====== | ||
+ | To get started, you can either: | ||
+ | - Go to [[https:// | ||
- | To get started, download templates from [[https:// | ||
- | You will want to **change every reference** of examplemod to your mod, this includes '' | + | ==== ...ParchmentMC? |
- | ==== I don't want Architectury API... ==== | + | Basically, follow [[https:// |
+ | <code diff> | ||
+ | allprojects { | ||
+ | apply plugin: " | ||
+ | apply plugin: " | ||
+ | apply plugin: " | ||
- | Remove lines related to Architectury API in each of the '' | + | archivesBaseName = rootProject.archives_base_name |
+ | version = rootProject.mod_version | ||
+ | group = rootProject.maven_group | ||
- | <code diff> | + | repositories |
- | dependencies | + | - // Add repositories |
- | // We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies | + | - // You should only use this when depending on other mods because |
- | // Do NOT use other classes from fabric loader | + | - // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. |
- | | + | - // See https://docs.gradle.org/current/userguide/ |
- | | + | - // for more information about repositories. |
- | - modApi "dev.architectury: | + | + |
- | } | + | + name = ' |
+ | + url = ' | ||
+ | + } | ||
+ | } | ||
</ | </ | ||
- | + | ... and the **mappings dependency** | |
- | ==== I want Yarn instead... ==== | + | |
- | + | ||
- | Replace | + | |
<code diff> | <code diff> | ||
subprojects { | subprojects { | ||
Line 33: | Line 40: | ||
dependencies { | dependencies { | ||
minecraft " | minecraft " | ||
- | - // The following line declares the mojmap mappings, you may use other mappings as well | + | |
- | - | ||
- | | + | + // Use mojmap with ParchmentMC |
+ | + mappings loom.layered() { | ||
+ | + | ||
+ | + | ||
+ | + } | ||
+ | - // The following line declares the yarn mappings you may select this one as well. | ||
- // mappings " | - // mappings " | ||
- | + | ||
} | } | ||
} | } | ||
</ | </ | ||
+ | This is all performed in the root build.gradle script. | ||
+ | |||
+ | ====== Next steps ====== | ||
+ | |||
+ | You can learn about: | ||
+ | - Additional [[plugin: | ||
+ | - The [[loom: | ||
+ | - Get coding with the [[api: | ||
+ | - [[: |