Skip to content
PolarFox27 edited this page Jan 15, 2023 · 5 revisions

Levels

Each job is made of levels, and the player needs a certain amount of xp to pass to the next level. Levels are important as it is when reaching a new level that the player gets rewards and unlock items and blocks. The configuration of those levels is made in the file levels.json. This file has the following structure :

{
    "miner" : [100, 200, 300, 400, 500],
    "hunter" : [50, 200, 302, 4000, 500, 600, 10000]
}

In this configuration, there are 2 jobs : miner and hunter. The numbers following the names are the xp needed to pass each level. Example, to go from level 0 to level 1 for the job miner, you need 100xp. To go from level 1 to 2, you need 200xp, etc. You can also see that each job may have a different number of level and different xp needed for each level. You add many jobs as you want, as long as they all have different names (case sensitive). Jobs can have any number of levels, as long as it is more than 0, and that the xp required is not 0 or a negative number.


Icons

You can create custom icons for each of your jobs ! The icons must follow the following rules:

  • The file size must be 64x64 pixels, and the file must be a PNG file.
  • The name of the file should be job_name.png, where job_name is the name of the job.
  • All the icons should be put in the icons folder.

You can also use the default icons I provide here, just be careful to change the file name.


Translations

Since you can configure the job names, you also have to configure the translations in the languages you want. This is done in the translations.json file. The file has the following structure:

{
    "job.miner":{
        "en_us":"Miner",
        "fr_fr":"Mineur"
    },
    "job.hunter":{
        "en_us":"Hunter",
        "fr_fr":"Chasseur"
    }
}

Each entry has the format job.job_name. Each job must have an entry in this file (except if you want display bugs of course). You can add as many translations as you want for each job, or just the English one, you can do as you want. Please note that the mod is only available in English or French at the moment, so it might be weird to have some texts and names translated and others not.

In the example above, there are translations in English and French for the jobs miner and hunter.

Clone this wiki locally