-
Bug
-
Resolution: Invalid
-
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.