Skip to content

TheOnlyTails/BlockModels

Repository files navigation

Maven metadata URL GitHub Workflow Status Kotlin Gradle GitHub License

Announcement: BlockModels will be ported to 1.18

BlockModels

A Kotlin DSL for creating block models in Minecraft Forge mods.

For documentation and usage instructions, please take a look at the wiki.

Here's the maven-metadata.xml of this library.

Installation

Don't forget to replace the VERSION key with the version in the top with the Maven Central badge at the top!

Gradle/Groovy

repositories {
    mavenCentral()
}

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

Gradle/Kotlin

repositories {
    mavenCentral()
}

dependencies {
    val blockModels = project.dependencies.create(group = "com.theonlytails", name = "blockmodels", version = VERSION)
		.apply { isTransitive = false }
    
    implementation(fg.deobf(blockModels))
}

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


Want to generate loot tables with a DSL like this? Check out LootGoblin!

About

A Kotlin DSL for creating block models in Minecraft Forge mods.

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages