diff --git a/data/herohost/advancement/herohost/baby_steps.json b/data/herohost/advancement/herohost/baby_steps.json new file mode 100644 index 0000000..83f70a8 --- /dev/null +++ b/data/herohost/advancement/herohost/baby_steps.json @@ -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": { + + } +} \ No newline at end of file diff --git a/data/herohost/advancement/herohost/hard_listener.json b/data/herohost/advancement/herohost/hard_listener.json index e44985f..37ef3b5 100644 --- a/data/herohost/advancement/herohost/hard_listener.json +++ b/data/herohost/advancement/herohost/hard_listener.json @@ -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, diff --git a/data/herohost/function/init.mcfunction b/data/herohost/function/init.mcfunction index 0f3c02f..c392439 100644 --- a/data/herohost/function/init.mcfunction +++ b/data/herohost/function/init.mcfunction @@ -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 diff --git a/data/herohost/function/misc/lock.mcfunction b/data/herohost/function/misc/lock.mcfunction index 927fb87..1a2b8b5 100644 --- a/data/herohost/function/misc/lock.mcfunction +++ b/data/herohost/function/misc/lock.mcfunction @@ -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 \ No newline at end of file