Skip to content
TheOnlyTails edited this page Aug 31, 2021 · 12 revisions

Welcome to the LootGoblin wiki!

LootGoblin is a Kotlin wrapper and DSL for the loot table creation system in Minecraft, using the Minecraft Forge mod loader.

Setting up

It's simple! LootGoblin is uploaded to the Maven Central Repository, and you can access it in your projects using the mavenCentral() method, like so:

Don't forget to replace the VERSION key with this version: Maven metadata URL

For Gradle/Groovy (build.gradle)

repositories {
    mavenCentral()
}

dependencies {
    def lootGoblin = fg.deobf(project.dependencies.create(group: "com.theonlytails", name: "lootgoblin", version: VERSION) {
	    transitive = false
    })
    
	implementation fg.deobf(lootGoblin)
}

Gradle/Kotlin (build.gradle.kts)

repositories {
    mavenCentral()
}

dependencies {
    val lootGoblin = project.dependencies.create(group = "com.theonlytails", name = "lootgoblin", version = VERSION)
		.apply { isTransitive = false }

	implementation(project.the<DependencyManagementExtension>().deobf(lootGoblin))
}

The isTransitive property is added to make sure the library is imported correctly.

Contributing to LootTables

Before contributing, please read the contribution guidelines carefully and follow the steps in them one-by-one.

Clone this wiki locally