Skip to content

Editors

Thonk edited this page Jun 14, 2022 · 1 revision

Added in 0.2.0

Editors are a way to change things to professions datapacks without having to create a new profession. This can be helpful if you downloaded a profession pack, or are using the builtin one and just want to edit something about it.

Append

This is the only editor currently. It allows you to add more actions and unlocks to a profession. In your json file, you will need a "function_type" of "professions:append"

The key of the profession you want to append to, and then any additional actions and unlocks you want to add to the profession.

Ex:

{
  "function_type": "professions:append",
  "to_edit_profession_key": "professions:mining",
  "actions": [],
  "unlocks": [
    {
      "unlock": "professions:block",
      "blocks": [
        "#minecraft:terracotta"
      ],
      "level": 2
    }
   ]
}

This will APPEND to the builtin mining profession, and add an unlock for when the player reaches level 2 to receive the drops from terracotta blocks

Clone this wiki locally