Giter VIP home page Giter VIP logo

quilt-mappings's Introduction

Quilt Mappings

Quilt Mappings is a set of open, unencumbered Minecraft mappings, free for everyone to use under the Creative Commons Zero license. The intention is to let everyone mod Minecraft freely and openly, while also being able to innovate and process the mappings as they see fit.

Unlike previous mapping sets, Quilt Mappings allows referencing the official Mojang mappings, which speeds up creating new mappings for Minecraft and improves name quality and accuracy.

To see the current version being targeted, check the branch name!

Usage

A Minecraft mod using Loom

To use Quilt Mappings in a Fabric or Quilt mod use the official Quilt Mappings on Loom (QMoL) Gradle plugin.

Fabric-Loom support

This extra code is only needed if you are using Fabric Loom; the QMoL plugin is applied by default on Quilt.

settings.gradle:

pluginManagement {
    repositories {
        maven { url = "https://maven.quiltmc.org/repository/release" }
    }
}

build.gradle:

plugins {
  // ...
  // Check the Quilt Mappings on Loom README for the correct version to use
  id "org.quiltmc.quilt-mappings-on-loom" version "QMoL_VERSION"
}

See here for the correct QMoL_VERSION to use.

Common code

This code is added to your buildscript regardless of if you are using Fabric or Quilt Loom.

dependencies {
   mappings(loom.layered {
      addLayer(quiltMappings.mappings("org.quiltmc:quilt-mappings:${project.minecraft_version}+build.${project.quilt_mappings}:v2"))
   })
}

Something else

To obtain a deobfuscated Minecraft jar, ./gradlew mapNamedJar will generate a jar named like <minecraft version>-named.jar, which can be sent to a decompiler for deobfuscated code.

Please note to run the Quilt Mappings build script Java 17 or higher is required!

Contributing

Our goal is to provide high-quality names that make intuitive sense. In our experience, this goal is best achieved through contribution of original names, rather than copying names from other mappings projects. While we believe that discussions relating to the names used by other mappings projects can be useful, those names must stand up to scrutiny on their own - we won't accept names on the grounds that they're present in other mappings projects.

We recommend discussing your contribution with other members of the community - either directly in your pull request, or in our other community spaces. We're always happy to help if you need us!

Please have a look at the naming conventions before submitting mappings.

Getting Started

  1. Fork and clone the repo
  2. Run ./gradlew mappings (Linux, macOS) or gradlew mappings (Windows) to open Enigma, a user interface to easily edit the mappings
  3. Commit and push your work to your fork
  4. Open a pull request with your changes

Gradle

Quilt Mappings uses Gradle to provide a number of utility tasks for working with the mappings.

mappings

Setup and download and launch the latest version of Enigma automatically configured to use the merged jar and the mappings.

Compared to launching Enigma externally, the gradle task adds a name guesser plugin that automatically maps enums and a few constant field names.

mappingsUnpicked

Same as above, but unpicks the constants and launches Enigma with them. Can be a little bit slower to get going.

build

Build a GZip'd archive containing a tiny mapping between official (obfuscated), hashed-mojmap, and Quilt Mappings names ("named") and packages enigma mappings into a zip archive.

mapNamedJar

Builds a deobfuscated jar with Quilt mappings and automapped fields (enums, etc.). Unmapped names will be filled with hashed-mojmap names.

decompileCFR

Decompile the mapped source code. Note: This is not designed to be recompiled.

downloadMinecraftJars

Downloads the client and server Minecraft jars for the current Minecraft version to .gradle/minecraft

mergeJars

Merges the client and server jars into one merged jar, located at VERSION-merged.jar in the project directory where VERSION is the current Minecraft version.

quilt-mappings's People

Contributors

apple502j avatar asiekierka avatar copygirl avatar darkhax avatar dreendex avatar earthcomputer avatar enbrain avatar haykam821 avatar i509vcb avatar iamgreaser avatar iotabread avatar jamierocks avatar jamieswhiteshirt avatar jaskarth avatar juuxel avatar kashike avatar lambdaurora avatar liach avatar maxpowa avatar mezz avatar modmuss50 avatar neuneinser avatar oroarmor avatar pyrofab avatar runemoro avatar shadowfacts avatar shnupbups avatar sollace avatar squiddev avatar yanisbft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.