-
Notifications
You must be signed in to change notification settings - Fork 1
Home
TheOnlyTails edited this page Aug 11, 2021
·
12 revisions
LootTables is a Kotlin wrapper and DSL for the loot table creation system in Minecraft, using the Minecraft Forge mod loader.
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:
repositories {
mavenCentral()
}
dependencies {
def lootTables = fg.deobf(project.dependencies.create(group: "com.theonlytails", name: "loottables", version: VERSION) {
transitive = false
})
implementation fg.deobf(lootTables)
}
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.
Before contributing, please read the contribution guidelines carefully, and follow the steps in them one-by-one.