GitHub Guide

What is GitHub?

GitHub is a popular place to host and store files that use git version control. Which is a fancy way of saying, external file host with backups. We use GitHub as it provides an easy way for us to handle submissions and tracking updates

Requirements

  1. Create a GitHub account here

  2. If you are unfamiliar with git, install GitHub Desktop.

How do I upload my map to GitHub?

  1. Once you are signed in to GitHub, go to this site

    • For Repository name put in your map name.

    • Make sure it is set to public

    • Press Create Repository

  2. Open GitHub Desktop, and sign into it

    • Select File at the top left, and click Clone repository

    ../../_images/clone.png
    • Click on your map’s repository name, and then Clone in the bottom right

    ../../_images/clonemenu.png
  3. Delete the example files

    • Select Repository at the top and click Show in your File Manager

    ../../_images/openfolder.png
    • Go into the src folder

    • Go into the world folder

    • Delete the largeplus folder

    • Delete the directory

  4. Exit the world in Minecraft, and locate your world’s folder

    • Before closing the world, go to the center of the map and press F3 and make note note of your coordinates and save them for later.

    • To get to the folder, go to Singleplayer -> Edit -> Open world folder

    ../../_images/edit-button.png ../../_images/openworldfolder-button.png
  5. Add your custom map’s files

    Note

    There are 4 possible map types, small, large, largeplus, and remastered

    More information can be found on the Map requirements

    • Create a folder and name it the map type your world is

    • Enter the new folder

    • Copy your custom map’s world data to the new folder

  1. Customise the lebmod.json

    • Go back to the src folder

    • Open lebmod.json in a text editor

    • Customise the lebmod.json to the values of your map. See: Json Schema

    Tip

    If you do not have a proper text editor installed, try Notepad++ or VSCode

  1. Upload your changes

    • Go to Github Desktop and make sure all the files are selected by clicking on the top tickbox in the top left and making sure it is checked

    ../../_images/selectfiles.png
    • Go down to the summary box at the bottom and make a name for your changes, something like Upload map data would be fine

    • Click on the Commit to main button

    ../../_images/commit.png
    • Click the Push origin button

    ../../_images/pushorigin.png

Your map repository is now on github! To continue with the map submission process see Submitting your map

How do I upload an update of my map?

  1. Open your map’s new world folder

    • To get to the folder, go to Singleplayer -> Edit -> Open world folder

    ../../_images/edit-button.png ../../_images/openworldfolder-button.png
  2. Open your map’s repository folder

    • Open GitHub Desktop

    • Select Repository at the top and click Show in your File Manager

    ../../_images/openfolder.png
  3. Replace the world data in your map’s repository

    • Navigate to src

    • Enter the folder for the map type you are updating

    Note

    There are 4 possible map types, small, large, largeplus, and remastered

    More information can be found on the Map requirements

    • Delete the old world data and replace it with your new version

    Caution

    Make sure that you delete the OLD world data from your map’s repository, NOT the new data you are getting from Minecraft

  4. Update your lebmod.json

    After making an update, you should review lebmod.json and see if it needs any changes

    • Go back to the src folder

    • Open lebmod.json in a text editor

    • Update the version option to reflect your map’s new version number

    • Check to make sure if anything else needs to be updated. For example if you added a new map type, you will need to enable it and enter its coordinates

    If you are unsure what these options do, see: Json Schema

    Tip

    If you do not have a proper text editor installed, try Notepad++ or VSCode

  1. Upload your changes

    • Go to Github Desktop and make sure all the files are selected by clicking on the top tickbox in the top left and making sure it is checked

    ../../_images/selectfiles.png
    • Go down to the summary box at the bottom and make a name for your changes, either describe the update or just use a version number

    • Click on the Commit to main button

    ../../_images/commit2.png
    • Click the Push origin button

    ../../_images/pushorigin.png

Your map’s update is now on github! To continue with the map submission process see Submitting an update to your map