Skip to content
Juuxel edited this page Jan 13, 2020 · 9 revisions

Welcome to the cotton wiki!

This is a wiki intended for mod developers that intend to use the cotton API in their mod. If you are a user make sure to check out our guide for players instead.

Setting up your dev environment

Cotton and its related mods are hosted on the Cotton maven. In your non-buildscript repositories block, add the following line: maven { url 'http://server.bbkr.space:8081/artifactory/libs-release' }

Then, in your non-buildscript dependencies block, add:

dependencies {
    modImplementation "io.github.cottonmc.cotton:cotton:<version>"
    // (optional)
    // include "io.github.cottonmc.cotton:cotton:<version>"
}

The most recent version can be found here: Maven metadata URL

Getting Started

We recommend that you start by looking at the Config Manager and the Mod Logger. Feel free to join our discord if you have any questions.