Skip to content

Commit

Permalink
本地化
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteElephant-abc committed Jan 3, 2025
1 parent 4191acc commit a52b68d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
17 changes: 13 additions & 4 deletions data/setblock_tnt/function/start.mcfunction
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
tellraw @a "--------------------"
tellraw @a "| 数据包加载成功"
tellraw @a [{"text": "| "},{"text":"by white_elephant_","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://space.bilibili.com/1836643444"}}]
tellraw @a [{"text": "| SetBlock-TNT "},{"type":"translatable","translate":"license.white.elephant.enable","fallback":"数据包加载成功","color":"green","bold":true}]
tellraw @a [{"text": "| "},{"text":"by white_elephant_","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://modrinth.com/user/white_elephant"}}]
tellraw @a "| "
tellraw @a [{"text": "| "},{"text": "本数据包使用 ","bold": true},{"text":"GNU GPL","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://www.gnu.org/licenses/gpl-3.0.txt"}},{"text": " 协议开源","bold": true}]
tellraw @a "--------------------"
tellraw @a [{"text": "| "},{"type":"translatable","translate":"license.white.elephant.use","fallback":"本数据包使用","bold": true},{"text": " "},{"text":"GNU GPL","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://www.gnu.org/licenses/gpl-3.0.txt"}},{"text": " "},{"type":"translatable","translate":"license.white.elephant.open.source","fallback":"协议开源","bold": true}]
tellraw @a {"type":"translatable","translate":"no.resource.pack.white.elephant.a","fallback":"| "}
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"WARNING: No localization","color":"red","bold":true}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"resource package detected.","color":"red","bold":true}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"You can click the link below,"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"or go to the official website of"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"this data package to download the"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"resource package."}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"Modrinth","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://modrinth.com/project/localization-resource-pack"}},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":" | "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"GitHub","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://github.com/WhiteElephant-abc/Localization-Resource-Pack"}}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"--------------------"}]

function dfl:start/show/health_list
function dfl:start/show/death
scoreboard objectives add dfl_enable dummy
Expand Down
4 changes: 2 additions & 2 deletions data/setblock_tnt/function/things.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
execute unless score @r dfl_enable matches 1 run \
title @a times 0 70 20
execute unless score @r dfl_enable matches 1 run \
title @a title {"text":"!!! 缺少前置 !!!","color":"red","bold":true}
title @a title [{"text":"!!! ","color":"red","bold":true},{"type":"translatable","translate":"need.dfl.white.elephant.no","fallback":"缺少前置","color":"red","bold":true},{"text":" !!!","color":"red","bold":true}]
execute unless score @r dfl_enable matches 1 run \
title @a subtitle {"text":"请安装数据包 datapackets functions LIB","color":"gray"}
title @a subtitle [{"type":"translatable","translate":"need.dfl.white.elephant.please.install","fallback":"请安装数据包","color":"gray"},{"text":" datapackets functions LIB","color":"gray"}]
execute unless score @r dfl_enable matches 1 run \
return fail
title @a reset
Expand Down
17 changes: 13 additions & 4 deletions data/setblock_tnt/functions/start.mcfunction
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
tellraw @a "--------------------"
tellraw @a "| 数据包加载成功"
tellraw @a [{"text": "| "},{"text":"by white_elephant_","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://space.bilibili.com/1836643444"}}]
tellraw @a [{"text": "| SetBlock-TNT "},{"type":"translatable","translate":"license.white.elephant.enable","fallback":"数据包加载成功","color":"green","bold":true}]
tellraw @a [{"text": "| "},{"text":"by white_elephant_","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://modrinth.com/user/white_elephant"}}]
tellraw @a "| "
tellraw @a [{"text": "| "},{"text": "本数据包使用 ","bold": true},{"text":"GNU GPL","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://www.gnu.org/licenses/gpl-3.0.txt"}},{"text": " 协议开源","bold": true}]
tellraw @a "--------------------"
tellraw @a [{"text": "| "},{"type":"translatable","translate":"license.white.elephant.use","fallback":"本数据包使用","bold": true},{"text": " "},{"text":"GNU GPL","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://www.gnu.org/licenses/gpl-3.0.txt"}},{"text": " "},{"type":"translatable","translate":"license.white.elephant.open.source","fallback":"协议开源","bold": true}]
tellraw @a {"type":"translatable","translate":"no.resource.pack.white.elephant.a","fallback":"| "}
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"WARNING: No localization","color":"red","bold":true}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"resource package detected.","color":"red","bold":true}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"You can click the link below,"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"or go to the official website of"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"this data package to download the"}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"resource package."}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"| "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"Modrinth","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://modrinth.com/project/localization-resource-pack"}},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":" | "},{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"GitHub","color":"blue","underlined":true,"italic":true,"clickEvent":{"action":"open_url","value":"https://github.com/WhiteElephant-abc/Localization-Resource-Pack"}}]
tellraw @a [{"type":"translatable","translate":"no.resource.pack.white.elephant.nothing","fallback":"--------------------"}]

function dfl:start/show/health_list
function dfl:start/show/death
scoreboard objectives add dfl_enable dummy
Expand Down
4 changes: 2 additions & 2 deletions data/setblock_tnt/functions/things.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
execute unless score @r dfl_enable matches 1 run \
title @a times 0 70 20
execute unless score @r dfl_enable matches 1 run \
title @a title {"text":"!!! 缺少前置 !!!","color":"red","bold":true}
title @a title [{"text":"!!! ","color":"red","bold":true},{"type":"translatable","translate":"need.dfl.white.elephant.no","fallback":"缺少前置","color":"red","bold":true},{"text":" !!!","color":"red","bold":true}]
execute unless score @r dfl_enable matches 1 run \
title @a subtitle {"text":"请安装数据包 datapackets functions LIB","color":"gray"}
title @a subtitle [{"type":"translatable","translate":"need.dfl.white.elephant.please.install","fallback":"请安装数据包","color":"gray"},{"text":" datapackets functions LIB","color":"gray"}]
execute unless score @r dfl_enable matches 1 run \
return fail
title @a reset
Expand Down

0 comments on commit a52b68d

Please sign in to comment.