Submission handling

This guide is for adding and updating mods to the ModTools Database repository on GitHub.

Important

This should only be used AFTER THE SUBMISSION HAS BEEN DEEMED AS ACCEPTED.

A mod should not be added to the ModTools Database until it has passed the moderation process.

Requirements

  1. Download and install Git to your machine

  2. Download the ModTools-Database and enter it

    • Open your system’s terminal

    • Enter the directory you want to download the repository to

    • Download the files: git clone --recurse-submodules https://github.com/Legacy-Edition-Minigames/ModTools-Database.git

    Danger

    This will download ALL the mods inside the ModTools Database, make sure you have the storage space for this.

    • Enter the new folder: cd ModTools-Database

Add a new submission

Note

You are expected to have a terminal window open inside the ModTools-Database folder before continuing.

  1. Make sure the repository is up to date: git checkout main

  2. Add the repository

    • Enter the correct category: cd Featured or cd Verified

    • Add the repository as a submodule: git submodule add https://github.com/Username/repository-name

    • Enter the submodule: cd repository-name

  3. Set it to the correct version

    • Check the releases page of the repository, and find the latest stable version of the mod

    ../../_images/findversion.png
    • Copy that version’s hash

    ../../_images/copyhash.png
    • Set the submodule to the hash you just copied

      • git fetch

      • git checkout <hash>

  4. Upload the changes

    • Go back up to the Verified or Featured folder: cd ..

    • Add the updated submodule to the commit: git add repository-name

    • Commit the changes: git commit -m "Added <map name> <version name>"

    • Upload the changes: git push

Update an existing submission

Note

You are expected to have a terminal window open inside the ModTools-Database folder before continuing.

  1. Make sure the repository is up to date: git checkout main

  2. Enter the submodule: cd repository-name

  3. Set it to the correct version

    • Check the releases page of the repository, and find the latest stable version of the mod

    ../../_images/findversion.png
    • Copy that version’s hash

    ../../_images/copyhash.png
    • Set the submodule to the hash you just copied

      • git fetch

      • git checkout <hash>

  4. Upload the changes

    • Go back up to the Verified or Featured folder: cd ..

    • Add the updated submodule to the commit: git add repository-name

    • Commit the changes: git commit -m "Updated <map name> to <version name>"

    • Upload the changes: git push