Using a knowledge book doesn't give advancements.
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
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"
}
Environment
Windows 10
Linked Issues
Created Issue:
Using a knowledge book doesn't give advancements.
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:
{Recipes:[]}
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_book5. Use the book
6. See that the score goes up but you don't get xpAdvancement JSON:
{ "text": "Advancement" }
{
"display": {
"title":,
{ "text": "Description" }
"description":,
{ "item": "minecraft:stone" }
"icon":,
{ "item": "minecraft:knowledge_book" }
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"use_book": {
"trigger": "minecraft:consume_item",
"conditions": {
"item":}
{ "experience": 10000 }
}
},
"requirements": [
[
"randomize_kit"
]
],
"rewards":,
"parent": "bug:hidden/root"
}Environment
Windows 10
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:
{Recipes:[]}
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_book5. Use the book
6. See that the score goes up but you don't get xpAdvancement JSON:
{ "text": "Advancement" }
{
"display": {
"title":,
{ "text": "Description" }
"description":,
{ "item": "minecraft:stone" }
"icon":,
{ "item": "minecraft:knowledge_book" }
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"use_book": {
"trigger": "minecraft:consume_item",
"conditions": {
"item":}
{ "experience": 10000 }
}
},
"requirements": [
[
"randomize_kit"
]
],
"rewards":,
"parent": "bug:hidden/root"
}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:
{Recipes:[]}
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_book5. Use the book
6. See that the score goes up but you don't get xpAdvancement 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" }
duplicates
Remember to extract the .zip file when putting it in the “datapacks” folder
Oops, I made a mistake. Change the "randomize_kit" in the requirements to be "use_book"
Can you please check if this applies to the latest 1.16 development snapshot, too?
Likely intended (see [Mod] tryashtar's comment here).