Giter VIP home page Giter VIP logo

feather-mappings's Introduction

Feather

Build Build All Publish Discord

Feather 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.

Usage

To use feather-deobfuscated Minecraft for Minecraft modding or as a dependency in a Java project, you can use loom Gradle plugin. See fabric wiki tutorial for more information.

To obtain a deobfuscated Minecraft jar, py feather.py mapNamedJar <minecraft version> will generate a jar named like <minecraft version>-named.jar, which can be sent to a decompiler for deobfuscated code. You can also directly generate a mapped jar and decompile the code using one of the following commands (no need to run the mapNamedJar task first):

  • CFR: py feather.py decompileCFR <minecraft version>
  • Quiltflower: py feather.py decompileQuiltflower <minecraft version>
  • Procyon: py feather.py decompileProcyon <minecraft version>

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 py feather.py feather <minecraft version> to open Enigma, a user interface to easily edit the mappings
  3. Save your changes by running one of the following save tasks (py feather.py <task> <minecraft version>):
    • propagateMappings: propagate your changes up and down the version graph and save them to every applicable Minecraft version (this is most likely the task you want to use)
    • insertMappings: save your changes only to the specified Minecraft version
    • propagateMappingsDown: propagate your changes down the version graph (to versions further away from the root) and save them to every applicable Minecraft version
    • propagateMappingsUp: propagate your changes up the version graph (to versions closer to the root) and save them to every applicable Minecraft version
  4. Commit and push your work to your fork
  5. Open a pull request with your changes

NOTE

The feather task separates the mappings for the specified version out into temporary files in the /run/ folder. Enigma will read and write to these files, and the save tasks will use these files to save the mappings back into the version graph.

  • DO NOT MANUALLY EDIT THESE FILES! You may corrupt the mappings!
  • Running the feather task will overwrite these files. If you have unsaved changes, make sure to run one of the save tasks before running the feather task to open Enigma again!
  • You can safely open multiple Enigma instances for different Minecraft versions. You cannot safely open multiple Enigma instances for one Minecraft version.

Gradle

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

feather

setupFeather 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 map enums and a few constant field names.

build

Build a GZip'd archive containing a tiny mapping between official (obfuscated), intermediary, and feather names ("named") and packages enigma mappings into a zip archive..

mapNamedJar

Builds a deobfuscated jar with feather mappings and automapped fields (enums, etc.). Unmapped names will be filled with intermediary names.

decompileCFR

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

download

Downloads the client and server Minecraft jars for the current Minecraft version to /feather-build-cache/game-jars/ in your user gradle cache.

mergeJars

Merges the client and server jars into one merged jar, located at /feather-build-cache/merged/<minecraft_version>-merged.jar in your user gradle cache.

setupFeather

download and mergeJars

feather-mappings's People

Contributors

spacewalkerrs avatar asiekierka avatar viktor40 avatar modmuss50 avatar hydos avatar boogiemonster1o1 avatar copetan avatar runemoro avatar kayleighwastaken avatar shadowfacts avatar liach avatar adelinam17n avatar copygirl avatar kahzerx avatar thdaele avatar srazkvt avatar shedaniel avatar darkhax avatar juuxel avatar sollace avatar yanisbft avatar emiliathorsen avatar jamieswhiteshirt avatar inspectorboat avatar maxpowa avatar iamgreaser avatar kashike avatar jamierocks avatar neuneinser avatar squiddev 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.