Replace Achievements with Advancements

- Advancements are now in JSON files, converted by the included migration script.
- WizardryAdvancementTrigger is a generic achievement trigger that can be reused throughout the code to trigger custom advancements not covered by the JSON conditions.
- Plus some other small and obvious fixes.
This commit is contained in:
Philipp Rustemeier
2018-03-14 19:12:13 +01:00
parent 62c2a9e9b8
commit 612bbdb64d
48 changed files with 706 additions and 723 deletions
@@ -1,22 +1,27 @@
{
"display": {
"icon": {
"item": "wizardry:wizard_handbook"
},
"title": {
"translate": "achievement.root"
},
"description": {
"translate": "achievement.root.desc"
},
"background": "minecraft:textures/blocks/stone.png",
"show_toast": false,
"announce_to_chat": false,
"frame": "challenge"
},
"criteria": {
"auto": {
"trigger": "location"
}
}
}
"display": {
"title": {
"translate": "itemGroup.wizardry"
},
"description": {
"translate": "itemGroup.wizardry"
},
"show_toast": false,
"announce_to_chat": false,
"icon": {
"item": "ebwizardry:wizard_handbook"
}
},
"criteria": {
"criteria_0": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "ebwizardry:magic_crystal"
}
]
}
}
}
}