Skip to content
melontini edited this page Apr 10, 2024 · 21 revisions

Welcome to the Dark Matter wiki!

Pardon our mess!
The wiki is currently out-of-date and targets 3.0.0 instead of 4.0.0

Depending on Dark Matter

First, add JitPack to your repositories.

repositories {
    maven {
        url 'https://jitpack.io'
    }
} 

The easiest way to go from here is to create a list of modules to depends on. Like this:

dependencies {
    //other dependencies...

    //base is required by all modules.
    //Modules can depend on modules. Be sure to include all of their dependencies too!
    def dmModules = ["base", "minecraft"]
    for (final def module in dmModules) {
        modApi include("me.melontini.dark-matter:dark-matter-${module}:${project.dark_matter}")
    }

    //other dependencies...
}

!!! Base repackages MixinExtras !!!

You can find all the tags and modules here: https://jitpack.io/#me.melontini/dark-matter

If you're having timeout issues, be sure to add this to your gradle.properties. This is due to JitPack building artifacts on demand.

systemProp.org.gradle.internal.http.connectionTimeout=180000
systemProp.org.gradle.internal.http.socketTimeout=180000

Modules

  1. base: the base of Dark Matter. Required by all modules.
  2. content: Content creation and registration. Requires minecraft.
  3. crash-handler: Crashlytics.
  4. danger: Features no one should use.
  5. enums: Enum extension and other enum-related utils. Requires minecraft.
  6. glitter: Draw special particles on-screen. Supports vanilla particles since 0.3.1. Requires minecraft and mirage.
  7. minecraft: Random Minecraft Version dependent features. Also includes AWs.
  8. mirage: Creates a fake ClientWorld instance. Requires minecraft.
  9. recipe-book: Add new categories, sorting predicates etc. Requires minecraft and enums.

Version support:

Supported versions are the same as Andromeda, everything else will only get (reported) bug fixes.