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": {
"translate": "hhost.minigame.advancement.herohost.hard_listener.description",
"fallback": "One warning should be enough..."
"fallback": "This could've been avoided"
},
"frame": "task",
"show_toast": true,

View File

@ -4,7 +4,11 @@ tellraw @a [{"text":"» ","color":"green"},{"translate": "hhost.minigame.reload"
tellraw @a[tag=hc.debug] [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.reload_issue","fallback":"If any issues occur, click %s to reload the server.","with":[{"translate":"hhost.minigame.here","fallback":"here","color":"red","clickEvent":{"action":"run_command","value":"/reload"},"hoverEvent":{"action":"show_text","contents":[{"translate":"hhost.minigame.operator_warning","fallback":"You need to be an operator to use this.","color":"red"}]}}],"color":"white"}]
# create scoreboard objectives
scoreboard objectives add +hc.core dummy
scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game
scoreboard objectives add +hc.core dummy
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

View File

@ -6,5 +6,4 @@ playsound minecraft:block.nether_wood.break master @s ~ ~ ~ 1 1 1
# advancement related
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