8000 GitHub - ComposeMC/Composer: Easy way to gain access to Minecraft's source code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ComposeMC/Composer

Repository files navigation

Composer

Composer is a build system for Compose API, allowing easy way to gain access to Minecraft Server source code. The project is currently running on yarn mappings, as they're currently the most complete mappings.

Installation

You can install the plugin to your Gradle project with Kotlin DSL by:

  • Adding plugin portal repository to your settings.gradle.kts:
      pluginManagement {
          repositories {
              mavenCentral()
              gradlePluginPortal()
          }
      }
  • Adding the plugin itself to the build.gradle.kts
      plugins {
          id("lol.koblizek.composer") version "0.2.1" // Replace version with any of Composer's versions
      } 

Usage

Here's a sample Gradle build file:

// build.gradle.kts
import lol.koblizek.composer.runtimeConfig
import lol.koblizek.composer.minecraftLibraries

runtimeConfig {
    // Use a server JAR file which is actually located in the wrapper JAR for decompilation
    extractAndUseInstead("META-INF/versions/1.19.4/server-1.19.4.jar")
    // Set default folder for decompiled code
    decompileIn(project.sourceSets.main.java.srcDir.iterator().next())
    // Use 1.19.4 version for as game version
    minecraft("1.19.4")
}

dependencies {
    // Apply Minecraft libraries as dependencies
    minecraftLibraries()
}

Contributing

You might see that I'm doing this all alone and my code isn't good all the times you can contribute to the project, it'd help me a lot and save some time. Just fork the repository, make changes and create a pull request, it's not that hard!

About

Easy way to gain access to Minecraft's source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0