Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions pal/gettingstarted/how_to_add_lib_to_mod.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ repositories {

Add the dependency for the loader you are using.

:::warning
We are absolutely against jar in jaring/including this mod in your mod.
Jar in jaring has zero benefits, it stops us from getting downloads, and it stops users from getting important library updates.
If you are worried that your mod has too many dependencies, don't be.
Most mod loaders automatically download dependencies, and even manually downloading libraries is not a big hassle.
With all this in mind please don't JIJ our mod, or anyone else's mod.
:::

:::note
The snippets below are written so they work in both the Groovy and the Kotlin DSL.
In the Kotlin DSL you can also pull the property out once and interpolate it directly:
Expand Down Expand Up @@ -81,10 +89,6 @@ implementation("com.zigythebird.playeranim:PlayerAnimationLibFabric:${property("
modImplementation("com.zigythebird.playeranim:PlayerAnimationLibFabric:${property("pal_version")}")
```

:::note
Unimined uses the same configurations as Fabric Loom, so this snippet works there as well.
:::

### NeoForge

```gradle
Expand Down