From 95f39450e910ba7050618f8011d01aefb733a6dd Mon Sep 17 00:00:00 2001 From: HeroChris Date: Fri, 29 Nov 2024 03:26:36 +0100 Subject: [PATCH] Translation rewrite --- data/herohost/function/core/initialize.mcfunction | 4 ++-- data/herohost/function/core/reconnect.mcfunction | 4 ++-- data/herohost/function/init.mcfunction | 4 ++-- data/herohost/function/main.mcfunction | 2 +- data/herohost/function/misc/lock.mcfunction | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/herohost/function/core/initialize.mcfunction b/data/herohost/function/core/initialize.mcfunction index 741ff8e..048acd6 100644 --- a/data/herohost/function/core/initialize.mcfunction +++ b/data/herohost/function/core/initialize.mcfunction @@ -1,7 +1,7 @@ # --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). --- -tellraw @s [{"text":"» ","color":"gray"},{"fallback":"Welcome ","translate":"hhost.minigame.initialize.welcome_01","color":"white"},{"selector":"@s","color":"yellow"},{"fallback":" to the ","translate":"hhost.minigame.initialize.welcome_02","color":"white"},{"text":"H","color":"#fa6a52"},{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"},{"fallback":" server!","translate":"hhost.minigame.initialize.welcome_03","color":"white"}] -tellraw @a[tag=hc.initialized] [{"text":"» ","color":"gray"},{"fallback":"Everyone, give ","translate":"hhost.minigame.initialize.wish_welcome_01","color":"white"},{"selector":"@s","color":"yellow"},{"fallback":" a warm welcome!","translate":"hhost.minigame.initialize.wish_welcome_02","color":"white"}] +tellraw @s [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.welcome","fallback":"Welcome %s to the %s server!","with":[{"selector":"@s","color":"yellow"},{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white"}] +tellraw @a[tag=hc.initialized] [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.wish_welcome","fallback":"Everyone, give %s a warm welcome!","with":[{"selector":"@s","color":"yellow"}],"color":"white"}] execute at @s run playsound minecraft:entity.chicken.egg master @s ~ ~ ~ 0.6 0.7 # tp player diff --git a/data/herohost/function/core/reconnect.mcfunction b/data/herohost/function/core/reconnect.mcfunction index 15ab5f2..dacb630 100644 --- a/data/herohost/function/core/reconnect.mcfunction +++ b/data/herohost/function/core/reconnect.mcfunction @@ -1,7 +1,7 @@ # --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). --- -tellraw @s [{"text":"» ","color":"gray"},{"fallback":"Welcome back ","translate":"hhost.minigame.reconnect.welcome_back_01","color":"white"},{"selector":"@s","color":"yellow"},{"fallback":" to the ","translate":"hhost.minigame.reconnect.welcome_back_02","color":"white"},{"text":"H","color":"#fa6a52"},{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"},{"fallback":" server!","translate":"hhost.minigame.reconnect.welcome_back_03","color":"white"}] -tellraw @s[tag=hc.debug] [{"text":"» ","color":"red"},{"fallback":"You are still in debug mode, click ","translate":"hhost.minigame.reconnect.debug_01","color":"white"},{"fallback":"here","translate":"hhost.minigame.reconnect.debug_02","color":"red","clickEvent":{"action":"run_command","value":"/tag @s remove hc.debug"},"hoverEvent": {"action": "show_text","value": {"fallback":"You need to be an operator to use this.","translate":"hhost.minigame.reconnect.debug_hover","color": "#fc2003"}}},{"fallback":" to disable it.","translate":"hhost.minigame.reconnect.debug_03","color":"white"}] +tellraw @s [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.welcome_back","fallback":"Welcome back %s to the %s server!","with":[{"selector":"@s","color":"yellow"},{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white"}] +tellraw @s[tag=hc.debug] [{"text":"» ","color":"red"},{"translate":"hhost.minigame.debug_warning","fallback":"You are still in debug mode, click %s to disable it.","with":[{"translate":"hhost.minigame.here","fallback":"here","color":"red","clickEvent":{"action":"run_command","value":"/tag @s remove hc.debug"},"hoverEvent":{"action":"show_text","contents":[{"translate":"hhost.minigame.operator_warning","fallback":"You need to be an operator to use this.","color":"red"}]}}],"color":"white"}] execute at @s run playsound minecraft:entity.chicken.egg master @s ~ ~ ~ 0.6 0.7 # tp player diff --git a/data/herohost/function/init.mcfunction b/data/herohost/function/init.mcfunction index bc6dc0a..0f3c02f 100644 --- a/data/herohost/function/init.mcfunction +++ b/data/herohost/function/init.mcfunction @@ -1,7 +1,7 @@ # --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). --- -tellraw @a [{"text":"» ","color":"green"},{"fallback": "Datapack resources loaded successfully.","translate": "hhost.minigame.init.reload","color": "#ffffff"}] -tellraw @a[tag=hc.debug] [{"text":"» ","color":"gray"},{"fallback":"If any issues occur, click ","translate": "hhost.minigame.init.reload_issue_01","color":"white"},{"fallback":"here","translate": "hhost.minigame.init.reload_issue_02","color":"red","clickEvent":{"action":"run_command","value":"/reload"},"hoverEvent": {"action": "show_text","value": {"fallback": "You need to be an operator to use this.","translate": "hhost.minigame.init.reload_issue_hover","color": "#fc2003"}}},{"fallback":" to reload the server.","translate": "hhost.minigame.init.reload_issue_03","color":"white"}] +tellraw @a [{"text":"» ","color":"green"},{"translate": "hhost.minigame.reload","fallback": "Datapack resources loaded successfully.","color": "#ffffff"}] +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 diff --git a/data/herohost/function/main.mcfunction b/data/herohost/function/main.mcfunction index 3efe706..5a72fcd 100644 --- a/data/herohost/function/main.mcfunction +++ b/data/herohost/function/main.mcfunction @@ -9,7 +9,7 @@ kill @e[type=item,tag=!persistent] gamemode adventure @a[tag=!hc.debug] # hc.debug - +#give @s minecraft:written_book[minecraft:item_model="minecraft:wind_charge",minecraft:enchantment_glint_override=false] # games # execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core \ No newline at end of file diff --git a/data/herohost/function/misc/lock.mcfunction b/data/herohost/function/misc/lock.mcfunction index 18e7992..282aaa6 100644 --- a/data/herohost/function/misc/lock.mcfunction +++ b/data/herohost/function/misc/lock.mcfunction @@ -1,5 +1,5 @@ # --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). --- advancement revoke @s only herohost:misc/lock -title @s actionbar [{"fallback":"You can't do that! This is not yours to touch.","translate":"hhost.minigame.misc.locked"}] +title @s actionbar [{"translate":"hhost.minigame.locked","fallback":"You can't do that! This is not yours to touch."}] playsound minecraft:block.nether_wood.break master @s ~ ~ ~ 1 1 1 \ No newline at end of file