Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3275

Advanvement parents deos not load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None

      then the server have been started/restarted the custom advancment deos not load correctly, i have create a root advancment who have grant automaticle to the player but the children advancment deos not display in the advancement tree, the advancment deos display the toast/announcement then the advancment is granted, but the tree deos not correctly display.

       

      world/data/advancments/dicechunk/dicecraft/root.json

       

      {
      "criteria": {
      "elytra": {
      "trigger": "minecraft:impossible",
      "conditions": {
      "items": []
      }
      }
      },
      "display": {
      "show_toast": false,
      "background": "minecraft:textures/blocks/wool_colored_red.png",
      "icon": {
      "item": "minecraft:grass",
      "data": 0
      },
      "description": "Betritt den Server",
      "title": "Dicecraft",
      "announce_to_chat": true,
      "frame": "task"
      }
      }
      

       

      world/data/advancments/dicechunk/dicecraft/dererstechunk.json

       

      {
      "parent": "dicechunk:dicecraft/root",
      "criteria": {
      "elytra": {
      "trigger": "minecraft:impossible",
      "conditions": {
      "items": []
      }
      }
      },
      "display": {
      "show_toast": true,
      "icon": {
      "item": "minecraft:gold_nugget",
      "data": 0
      },
      "description": "Kauf deinen ersten Chunk",
      "title": "Chunk",
      "announce_to_chat": true,
      "frame": "task"
      }
      }
      

      world/data/advancments/dicechunk/dicecraft/dererstechunk2.json

      {
      "parent": "dicechunk:dicecraft/dererstechunk",
      "criteria": {
      "elytra": {
      "trigger": "minecraft:impossible",
      "conditions": {
      "items": []
      }
      }
      },
      "display": {
      "show_toast": true,
      "icon": {
      "item": "minecraft:diamond",
      "data": 0
      },
      "description": "Kauf deinen zweiten Chunk",
      "title": "Chunk2",
      "announce_to_chat": true,
      "frame": "task"
      }
      }
      

      p.S

      is it possible to create a function for the player entity

      Player#grantAdvancement(NameNamespacedKey)

      Player#revokeAdvancement(NameNamespacedKey)

      and the CraftMagicNumbers.INSTANCE.loadAdvancment(NamespacedKey, String) deos work good but the CraftMagicNumbers.INSTANCE.removeAdvancement(NamespacedKey) deos only remove the file but not the Advancment from the AdvancmentIterator.

        1. 2017-05-28_13.05.50.png
          2017-05-28_13.05.50.png
          627 kB
        2. 2017-05-28_13.05.54.png
          2017-05-28_13.05.54.png
          627 kB
        3. 2017-05-28_19.51.24.png
          2017-05-28_19.51.24.png
          396 kB
        4. Unbenannt.png
          Unbenannt.png
          135 kB

            Unassigned Unassigned
            Ste3et_C0st Ste3et_C0st
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: