Wiki 9Minecraft Craftstudio Api Wiki
Craftstudio Api WikiDocumentation › Add The Api To Your Project

Add The Api To Your Project

We are going to see how to simply add the API and use it for your projet


The build.gradle

Add thes lignes to the build.gradle:

repositories {
    maven {
        name = "leviathan"
        url = ""
    }
}

dependencies {
   compile 'com.leviathanstudio:CraftStudio:[API-VERSION]-mc[MINECRAFT-VERSION][-beta]:dev'
}

Then change the two parameters:

Replace [API-VERSION] by the version of the API (Ex: 0.3.0.86)
Replace [MINECRAFT-VERSION] by the minecraft version of the API, (Ex: 1.11.2) Remove the bracket of [-beta] if you are using a beta version, completely remove it otherwise.

You should have something like this: com.leviathanstudio:CraftStudio:0.3.0.86-mc1.11.2-beta

You can find the list of all version here or directly on the maven

Once you've add these lignes, just launch a gradlew setupDecompWorkspace and a gradlew eclipse.

You are now ready to start your project !