Download SAM Library (Forge) — Minecraft Mods — MetaMods

SAM Library (Forge)

Active

Downloads

0

Last update

1 year ago
Client
Libraries

SAM Library (Forge)

This library provides convenient tools for managing mob spawning in Minecraft. It's particularly useful in situations where multiple modifications simultaneously attempt to change the spawning parameters of the same creatures.

Using the library in your project

1. Adding the repository

Add the following lines to your build.gradle file:

repositories {
    maven {
        url = "https://github.com/ricksouth/serilum-forge-maven/raw/maven/"
    }
}

2. Configuring dependencies

In the same file, specify the dependencies:

dependencies {
    runtimeOnly fg.deobf("com.natamus.samlibrary:samlibrary:VERSION")
    compileOnly fg.deobf("com.natamus.samlibrary:samlibrary:VERSION")
}

Replace VERSION with the current version in the format mcversion-modversion, for example: 1.15.2-1.0

3. Updating the workspace

After making changes, execute the command in the project folder:

$ gradlew cleanEclipse eclipse --refresh-dependencies

4. Configuring dependencies in mods.toml

Add the following lines to the end of the mods.toml file in the META-INF folder, replacing YOURMODID with your mod's identifier:

[[dependencies.YOURMODID]]
    modId="samlibrary"
    mandatory=true
    versionRange="[1.0,)"
    ordering="NONE"
    side="BOTH"

5. Uploading to CurseForge

When uploading files to your project page on CurseForge, be sure to specify SAM Library as a dependency in the appropriate section.

Additional resources

Project members
Serilum

Serilum

Created: 18 Apr 2020

ID: 37316