Skip to content

Reference mod for ores, ingots, tools, liquids, and all you can imagine.

License

Notifications You must be signed in to change notification settings

CottonMC/CottonResources

Repository files navigation

Cotton Resources

Importing

Include the Cotton maven in your build.gradle:

repositories {
  ...
  maven {
      name = "Cotton"
      url = "https://server.bbkr.space/artifactory/libs-release/"
  }
}

Include Cotton Resources in your build.gradle:

dependencies {
  /* this will expose the dependency to anyone building against your mod. You might
     want to set this to modImplementation for production */
  modApi  "io.github.cottonmc:cotton-resources:${cotton_resources_version}"

  /* this will package cotton-resources in your jar. skip if you don't want this */
  include "io.github.cottonmc:cotton-resources:${cotton_resources_version}"
}

Set the version in gradle.properties:

cotton_resources_version=1.5.1+1.15.2

Tell Loader about your dependency in fabric.mod.json:

  "depends": {
    "fabric": "*",
    ...

    "cotton-resources": ">=1.5.1",
  }