I found root.json file in minecraft source code and I want to know what is root.json file in minecraft. I found minecraft source code with VS Code Decompiler extension.(For find minecraft source code, first go in the VS Code and download Decompiler extension and then open .minecraft folder and then open versions folder and then select your version folder and then decompile jar file with VS Code Decompiler extension.)

root.json file is datapack file.

  • 3
    \$\begingroup\$ Do the contents of the file, or its location in the folder hierarchy, give you any clues? \$\endgroup\$
    – DMGregory
    Sep 4, 2020 at 21:19

1 Answer 1


I'm not sure if this is the root.json that you're describing, since you haven't listed any identifying contents or folder paths in your question, like this:


But if this is what you're looking at, then it looks like this file describes the start of one of the "Advancement" trees in the game. For this example, it's the first achievement in the "Minecraft" / "Story" tab (on the far left of this image):

Image of advancements menu, with Minecraft tab selected

The first part of the file covers what should be shown for this advancement in the UI, including an icon image (for the first/root node in the tree, this icon is also used for the menu tab itself), localized text IDs for its title and description, and what icon frame shape the advancement should use.

It also defines whether the advancement should show an on-screen toast or be announced to the chat upon completion.

The root (first) node in the advancement tree also defines what background texture to use for the menu tab containing its tree.

  "display": {
    "icon": {
      "item": "minecraft:grass_block"
    "title": {
      "translate": "advancements.story.root.title"
    "description": {
      "translate": "advancements.story.root.description"
    "frame": "task",
    "show_toast": false,
    "announce_to_chat": false,
    "hidden": false,
    "background": "minecraft:textures/gui/advancements/backgrounds/stone.png"

The next section defines the trigger conditions that will lead to the advancement completing - in this example, when the player gets a crafting table in their inventory:

  "criteria": {
    "crafting_table": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
            "item": "minecraft:crafting_table"
  "requirements": [

Other json files in the folder look quite similar, but they'll also have an extra line at the top:

"parent": "minecraft:story/root",

...which indicates which node comes before them in the tree.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .