• 0

    posted a message on 1.12 - Custom Advancements (AKA Achievements)
    Quote from Skylinerw»



    -Snip-a-roo-

    EDIT: Oh, just noticed a small typo in your root: you have "minecraft:writeable_book" for the icon which needs to be "minecraft:writable_book" instead.


    In related to the -snipped- part, I realized my mistake, and noticed the namespace bug as well.

    In relation to the EDIT, yeah I noticed that. That was also my problem lol
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 1.12 - Custom Advancements (AKA Achievements)

    So I have two files to test with root.json and beach.json.

    So in root.json

    This is the root.json
    {
        "display": {
            "icon": "minecraft:writeable_book",
            "title": "Little's Challenges!",
            "background": "minecraft:textures/blocks/dragon_egg.png"
        },
        "criteria": {
            "biome_1": {
                "trigger": "minecraft:location",
                "conditions": {
                    "biome": "minecraft:hell"
                }
            }
        }
    }
    
    This is the beach.json
    {
         "display": {
               "icon": "minecraft:sand",
               "title": "The Nether"
         },
         "parent": "minecraft:littleschallenges/root",
               "criteria": {
                  "biome": {
                  "trigger": "minecraft:location",
                  "conditions": {
                      "biome": "minecraft:hell"
                  }
               }
         }
    }




    I have the criteria for the file which is detecting if the player is in the nether. I also have to put the same criteria in the beach.json file as well, but what is the difference between putting the triggers and junk in the root and child files?


    You also said below about the child advancement, but you don't list what the "custom/root" advancement was, could you edit the post to show what the "custom/root" advancement was so we can get a better understanding into how it's related?


    Given the following advancement:


    {
    "display": {
    "title": "Take damage",
    "icon": "minecraft:diamond_sword"
    },
    "parent": "minecraft:custom/root",
    "criteria": {
    "trigger_1": {
    "trigger": "minecraft:player_damaged"
    }
    }
    }


    The above advancement would branch directly from the "minecraft:custom/root" advancement. Here is a visual representation:



    You can also have multiple advancements branching from the same parent:
    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please or register a new account.