Advancements
- Baby steps advancement [ wip ] - Hard listener advancement
This commit is contained in:
parent
c13825e29e
commit
45462c4bb4
37
data/herohost/advancement/herohost/baby_steps.json
Normal file
37
data/herohost/advancement/herohost/baby_steps.json
Normal 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": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -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,
|
||||||
|
@ -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"}]
|
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
|
# 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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user