Advancements

- Baby steps advancement [ wip ]
- Hard listener advancement
This commit is contained in:
HeroChris 2024-12-01 03:40:08 +01:00
parent c13825e29e
commit 45462c4bb4
4 changed files with 44 additions and 4 deletions

View File

@ -0,0 +1,37 @@
{
"parent": "herohost:herohost/root",
"display": {
"icon": {
"id": "minecraft:leather_boots"
},
"title": {
"translate": "hhost.minigame.advancement.herohost.baby_steps.title",
"fallback": "Baby steps"
},
"description": {
"translate": "hhost.minigame.advancement.herohost.baby_steps.description",
"fallback": "Take your first steps [not working yet]"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": false,
"hidden": false
},
"criteria": {
"baby_steps": {
"trigger": "minecraft:location",
"conditions": {
"player": {
"distance": {
"horizontal": {
"min": 100
}
}
}
}
}
},
"rewards": {
}
}

View File

@ -10,7 +10,7 @@
}, },
"description": { "description": {
"translate": "hhost.minigame.advancement.herohost.hard_listener.description", "translate": "hhost.minigame.advancement.herohost.hard_listener.description",
"fallback": "One warning should be enough..." "fallback": "This could've been avoided"
}, },
"frame": "task", "frame": "task",
"show_toast": true, "show_toast": true,

View File

@ -6,5 +6,9 @@ tellraw @a[tag=hc.debug] [{"text":"» ","color":"gray"},{"translate":"hhost.mini
# create scoreboard objectives # create scoreboard objectives
scoreboard objectives add +hc.core dummy scoreboard objectives add +hc.core dummy
scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game
scoreboard objectives add +hc.locked dummy
# scoreboard objectives add +hc.currency dummy
# scoreboard objectives add +hc.currency.add dummy
# scoreboard objectives add +hc.currency.remove dummy
# remove depricated scoreboard objectives # remove depricated scoreboard objectives

View File

@ -6,5 +6,4 @@ playsound minecraft:block.nether_wood.break master @s ~ ~ ~ 1 1 1
# advancement related # advancement related
scoreboard players add @s +hc.locked 1 scoreboard players add @s +hc.locked 1
advancement grant @s only herohost:/hands_off
execute if score @s +hc.locked matches 10.. run advancement grant @s only herohost:herohost/hard_listener execute if score @s +hc.locked matches 10.. run advancement grant @s only herohost:herohost/hard_listener