Using DivineMC API

A basic guide to using the DivineMC API.


API

DivineMC have some updates to default Paper API, so you can use DivineMC API to access some features that are not available in Paper API.

repositories {
    maven {
        url = uri("https://repo.bxteam.org/snapshots")
    }
}
 
dependencies {
    compileOnly("org.bxteam.divinemc:divinemc-api:1.21.5-R0.1-SNAPSHOT")
}
 
java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

Dev Bundle

Dev bundle is a tool provided by paperweight, which can easily access Minecraft NMS code during plugin development, See how to setup it and more details in paperweight-userdev.

To be able to use the dev bundle provided by DivineMC, you need to make following changes to the dependency that provides in the tutorial above.

repositories {
  maven {
    url = uri("https://repo.bxteam.org/snapshots")
  }
}
 
dependencies {
    paperweight.paperDevBundle("1.21.5-R0.1-SNAPSHOT") 
    paperweight.devBundle("org.bxteam.divinemc", "1.21.5-R0.1-SNAPSHOT") 
}
Edit on GitHub

Last updated on

On this page