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

Welcome to the LootTables wiki!

LootTables 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! LootTables 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 lootTables = fg.deobf(project.dependencies.create(group: "com.theonlytails", name: "loottables", version: VERSION) {
	    transitive = false
    })
    
    implementation fg.deobf(lootTables)
}

Gradle/Kotlin

repositories {
    mavenCentral()
}

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

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

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