Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-173664

Using a knowledge book doesn't give advancements.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2
    • None
    • Windows 10
    • Unconfirmed
    • (Unassigned)

      What I expected: Using a knowledge book will award the players advancements with the criteria consuming a knowledge book
      What actually happened: Using a knowledge book does NOT award the players those advancements, although your score of using the book does go up.

      How to reproduce:
      1. Do /scoreboard objectives add useBook minecraft.used:minecraft.knowledge_book
      2. Do /scoreboard objectives setdisplay sidebar useBook
      3. Download the datapack below containing the advancement and reload
      4. Do /give @s knowledge_book

      {Recipes:[]}

      5. Use the book
      6. See that the score goes up but you don't get xp

      Advancement JSON:

      {
          "display": {
              "title": {
                  "text": "Advancement"
              },
              "description": {
                  "text": "Description"
              },
              "icon": {
                  "item": "minecraft:stone"
              },
              "frame": "task",
              "show_toast": true,
              "announce_to_chat": true,
              "hidden": false
          },
          "criteria": {
              "use_book": {
                  "trigger": "minecraft:consume_item",
                  "conditions": {
                      "item": {
                          "item": "minecraft:knowledge_book"
                      }
                  }
              }
          },
          "requirements": [
              [
                  "randomize_kit"
              ]
          ],
          "rewards": {
              "experience": 10000
          },
          "parent": "bug:hidden/root"
      }
      

            Unassigned Unassigned
            SpeedyBCraft Nguyen Thanh
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: