welcome

welcome to the liteloader mdk

This site is currently being created. Some information is incomplete or missing. Please do not share this URL.

The LiteLoader MDK (LiteMDK) is provided to get you started making liteloader mods quickly and easily.

Choose the download for the version of minecraft you wish to develop for:

quick start

For a detailed introduction, check out the tutorial video. However if you are already familiar with Gradle and Eclipse, follow these quick-start steps:

  1. Download the appropriate zip file above and extract it to the folder you wish to use. This is normally your IDE's base project folder.
  2. Rename the folder to the name of your project, eg. MyCoolMod.
    (Gradle uses the folder name as the project name, so this is recommended)
  3. Edit the gradle.properties file with a text editor. Modify the contents to suit your project:
    group
    Set this to the maven-style group name for your project, this is usually in Reverse Domain Name Notation and will generally match the base package of your Java sources.
    name
    Set this to the identifying name of your mod, this should contain no spaces and will generally be all lowercase.
    version
    Enter the version for your mod, can be any string though semantic versioning is recommended.
    displayName
    Enter the user-friendly name for your mod, can contain any characters including spaces. For example My Cool Mod
    mcVersion
    Usually this will be correct, but you can enter any valid minecraft version 1.9 or greater here as long as a version of liteloader exists for it.
    mappings
    Mappings must refer to a valid stream and version from the MCPBot Export Site, however because LiteLoader also uses Mixins, it is recommended that you use the same mappings as the LiteLoader version in use.
  4. Open Eclipse (Neon or later recommended)
  5. Import the project into your workspace:
    1. Click File   Import
    2. Chose Gradle   Gradle Project
    3. Select the Project Root Directory as the folder where you extracted the MDK and then click Finish
    You will see lots of errors in the Problems view, don't worry!
  6. Decompile Minecraft:
    1. In the Gradle Tasks pane, expand your project
    2. Run the forgegradle   setupDecompWorkspace task
  7. Configure your project for Eclipse:
    1. In the Gradle Tasks pane run the ide   eclipse task
  8. Refresh your project by right-clicking the project and choosing Gradle   Refresh Gradle Project

You are now ready to start developing your mod!

building a litemod file

Once you have written your code, creating a distributable litemod using gradle is extremely straightforward.

  1. In the Gradle Tasks pane run the build   build task
  2. Your compiled .litemod file will be placed into the following folder in your workspace: <project_folder>/build/libs

Note that running each gradle task creates an Eclipse Run configuration for the task, and all you need to do the next time you want to run the task is choose it in the Run configurations dropdown.