Skip to content
TheOnlyTails edited this page Jun 8, 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 stored here, on GitHub, and you can access it in your projects using JitPack, like this:

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. (Note: A full list of the triage team members can be found here)

Clone this wiki locally