Setup
Be aware that MessageChain only supports Fabric at the moment.
Adding to your project as a dependency
We recommend you add the project as a dependency but not import the whole JAR file.
For your Gradle project, there are some files that you should modify.
- build.gradle
- gradle.properties
The packages are stored on Modrinth, so you should add the Modrinth maven repository.
build.gradle
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
...
dependencies {
// MessageChain
modImplementation "maven.modrinth:messagechain:${project.messagechain_version}"
modLocalRuntime "maven.modrinth:messagechain:${project.messagechain_version}"
}
As the latest version of MessageChain is v0.2-beta, you should add the following code.
gradle.properties
messagechain_version = 0.2
Then the project will be added.