Skip to content

Commit 5bae3d3

Browse files
committed
Squashed commit of the following:
commit 9c8f0a8 Author: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sat Jan 17 07:29:36 2026 +0000 Add publisher commit 484aea0 Author: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Thu Jan 1 16:17:10 2026 +0800 Update zh.json commit e2403d8 Author: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Thu Jan 1 16:10:56 2026 +0800 Update en.json commit 6eeef4b Author: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Mon Dec 22 12:14:00 2025 +0800 update links
1 parent 5da1043 commit 5bae3d3

8 files changed

Lines changed: 83 additions & 51 deletions

File tree

posts/better-mace.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ This Minecraft add-on makes the mace smashing attack more dramatic via cutscene
1616

1717
Download the add-on and apply the resource and behavior pack into the world. Trigger the better mace effect by performing a smash attack (which triggers when it is used after the player has fallen 1.5 blocks or more and hits an entity).
1818

19+
Here are some demo gifs of the add-on in action:
20+
21+
![Better Mace In Action](/assets/posts/better-mace/mace-smash-demo.gif)
22+
23+
![Better Mace In Action with Vibrant Visuals](/assets/posts/better-mace/mace-smash-demo-vv.gif)
24+
1925
## Techincal Documentation
2026

2127
I highly recommend check out that video before looking at this section, otherwise it may not make sense.
@@ -68,7 +74,7 @@ In case you (or me in the future) want a local coordinates to absolute coordinat
6874
function getAbsoluteLocationFromViewAnchor(
6975
anchor: Vector3,
7076
location: Vector3,
71-
viewDirection: Vector3,
77+
viewDirection: Vector3
7278
) {
7379
const dirz = new Vector3Builder(viewDirection);
7480
const dirx = new Vector3Builder(dirz.z, 0, -dirz.x);
@@ -98,3 +104,4 @@ I then used Snowstorm to export the particle infomation and its assets into Mine
98104
## Downloads
99105
100106
- [Download Better Mace Add-On](https://github.com/jayly-bot/addons/releases/download/mace/jayly_mace.mcaddon)
107+
- [CurseForge Link](https://curseforge.com/minecraft-bedrock/addons/jaylys-better-mace)

posts/hk-toll-rate.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,11 @@ Try it now!
5858
We also have a Chinese version available:
5959

6060
- [HK Tunnel Tolls App (Chinese / 中文)](/zh/hk-tunnels-tolls/)
61+
62+
## Sources
63+
64+
- [Transport Department - Toll Rates of Road Tunnels](https://www.td.gov.hk/en/transport_in_hong_kong/tunnels_and_bridges_n/toll_matters/toll_rates_of_road_tunnels_and_lantau_link/index.html)
65+
- [Hong Kong Public Holidays Data | DATA.GOV.HK](https://data.gov.hk/en-data/dataset/hk-dpo-statistic-cal)
66+
- [Transport Department - Toll Plans for Road Harbour Crossings](https://www.td.gov.hk/en/transport_in_hong_kong/tunnels_and_bridges_n/tvt/index.html)
67+
- [Toll Schedule for Time-varying Toll](https://www.td.gov.hk/filemanager/en/content_5014/Toll%20Schedule%20for%20Time-varying%20Toll.pdf)
68+
- [Transport Department - Toll Plans for Tai Lam Tunnel](https://www.td.gov.hk/en/transport_in_hong_kong/tunnels_and_bridges_n/tlt/index.html)

posts/查看香港實時隧道收費.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ lang: zh
1212

1313
這是一個簡單易用的工具,讓您可以快速查詢不同時間段的香港隧道收費,並根據實時資訊作出最佳行車決策。此應用程式還設有深色模式(Dark Mode),為喜歡夜間駕駛體驗的用戶提供更佳的視覺效果。
1414

15-
我們很高興推出「香港隧道收費」App,並期待您的反饋。立即試用:[jaylydev.github.io/hk-tunnels-tolls/](/hk-tunnels-tolls/)
15+
我們很高興推出「香港隧道收費」App,並期待您的反饋。立即試用:[jaylydev.github.io/zh/hk-tunnels-tolls/](/zh/hk-tunnels-tolls/)
1616

1717
## 使用方法
1818

@@ -46,7 +46,7 @@ lang: zh
4646
### 加至主畫面
4747

4848
1. 在 iPhone 或 iPad 上開啟 Safari 瀏覽器。
49-
2. 前往 [jaylydev.github.io/hk-tunnels-tolls/](/hk-tunnels-tolls/)
49+
2. 前往 [jaylydev.github.io/zh/hk-tunnels-tolls/](/zh/hk-tunnels-tolls/)
5050
3. 點擊螢幕底部的「分享」按鈕。
5151
![iOS 分享按鈕](/assets/posts/hk-toll-rate/ios-share-button.png)
5252
4. 在分享選單中選擇「加至主畫面」。
@@ -72,3 +72,11 @@ lang: zh
7272
我們亦提供英文版本:
7373

7474
- [HK Tunnel Tolls App (English)](/hk-tunnels-tolls/)
75+
76+
## 資料來源
77+
78+
- [運輸署 - 行車隧道的收費](https://www.td.gov.hk/tc/transport_in_hong_kong/tunnels_and_bridges_n/toll_matters/toll_rates_of_road_tunnels_and_lantau_link/index.html)
79+
- [香港公眾假期數據 | DATA.GOV.HK](https://data.gov.hk/tc-data/dataset/hk-dpo-statistic-cal)
80+
- [運輸署 - 過海隧道收費方案](https://www.td.gov.hk/tc/transport_in_hong_kong/tunnels_and_bridges_n/tvt/index.html)
81+
- [不同時段不同收費隧道費時間表](https://www.td.gov.hk/filemanager/tc/content_5014/Toll%20Schedule%20for%20Time-varying%20Toll_chi.pdf)
82+
- [運輸署 - 大欖隧道收費方案](https://www.td.gov.hk/tc/transport_in_hong_kong/tunnels_and_bridges_n/tlt/index.html)
6.89 MB
Loading
8.46 MB
Loading

src/locale/locales/en.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"bedrockExperiments": {},
3131
"mathSymbols": {},
3232
"hkTunnelsTolls": {
33-
"pageTitle": "Hong Kong Real-Time Tunnel Tolls | JaylyDev",
34-
"pageDescription": "\"Hong Kong Real-Time Tunnel Tolls\" — A helpful tool for Hong Kong drivers! Check tunnel toll rates instantly. We provide real-time toll information for Hong Kong's three cross-harbour tunnels (Western Harbour Tunnel, Cross-Harbour Tunnel, Eastern Harbour Crossing), Tai Lam Tunnel, Tate's Cairn Tunnel, Aberdeen Tunnel, Shing Mun Tunnels, Lion Rock Tunnel and Eagle's Nest Tunnel. Simple to use with clear information, helping you plan your travel time and avoid unnecessary expenses.",
33+
"pageTitle": "Hong Kong Tunnel Tolls - real time, any tunnels | JaylyDev",
34+
"pageDescription": "\"Hong Kong Tunnel Tolls\" — A helpful tool for Hong Kong drivers! Check tunnel toll rates instantly. We provide real-time toll information for Hong Kong's three cross-harbour tunnels (Western Harbour Tunnel, Cross-Harbour Tunnel, Eastern Harbour Crossing), Tai Lam Tunnel, Tate's Cairn Tunnel, Aberdeen Tunnel, Shing Mun Tunnels, Lion Rock Tunnel and Eagle's Nest Tunnel. Simple to use with clear information, helping you plan your travel time and avoid unnecessary expenses.",
3535
"appTitle": "HK Tunnel Tolls",
3636
"insiderPageTitle": "Hong Kong Real-Time Tunnel Tolls (Beta) | JaylyDev",
3737
"insiderPageDescription": "Provides real-time toll information for Hong Kong's three cross-harbour tunnels (Western Harbour Tunnel, Eastern Harbour Crossing, Cross-Harbour Tunnel) and Tai Lam Tunnel. Beta version app, may have errors or instability.",
@@ -65,7 +65,8 @@
6565
"note.3": "Private cars and motorcycles heading to Tai Lam Tunnel are subject to time-varying tolls, with taxi toll at $28 and commercial vehicle toll at $43.",
6666
"note.4": "\"Light Goods Vehicle (LGV)\" includes goods vehicles and special purpose vehicles not exceeding 5.5 tonnes.",
6767
"note.5": "\"Medium / Heavy Goods Vehicle (MGV / HGV)\" includes goods vehicles and special purpose vehicles exceeding 5.5 tonnes (excluding articulated vehicles).",
68-
"loading": "Loading...",
68+
"references": "References: ",
69+
"references.url": "https://jaylydev.github.io/posts/hk-toll-rate/#sources",
6970
"unableToCalculate": "Unable to calculate",
7071
"transitionPeriod": "At transition period",
7172
"tableHeaderPeriod": "Period",

src/locale/locales/zh.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"structureConverter.linkDownload": "從 GitHub 下載"
2929
},
3030
"hkTunnelsTolls": {
31-
"pageTitle": "香港實時隧道收費 | JaylyDev",
32-
"pageDescription": "香港實時隧道收費」— 香港駕駛人士的好幫手!透過本網站,即可查詢「隧道收費」。我們即時提供香港實時三條過海隧道(西隧、紅隧、東隧)、大欖隧道、大老山隧道、香港仔隧道、城門隧道、獅子山隧道和尖山隧道的收費資訊。操作簡單、資訊清晰,幫你輕鬆規劃出行時間,避免不必要的費用支出。",
31+
"pageTitle": "香港隧道收費(即時更新)| JaylyDev",
32+
"pageDescription": "香港隧道收費」- 香港駕駛人士的好幫手!透過本網站,即可查詢「隧道收費」。我們即時提供香港實時三條過海隧道(西隧、紅隧、東隧)、大欖隧道、大老山隧道、香港仔隧道、城門隧道、獅子山隧道和尖山隧道的收費資訊。操作簡單、資訊清晰,幫你輕鬆規劃出行時間,避免不必要的費用支出。",
3333
"appTitle": "香港隧道收費",
3434
"insiderPageTitle": "香港實時隧道收費(測試版) | JaylyDev",
3535
"insiderPageDescription": "即時提供香港實時三條過海隧道(西隧、東隧、紅隧)和大欖隧道收費資訊。測試版App,可能會有錯誤或不穩定。",
@@ -63,6 +63,8 @@
6363
"note.3": "前往大欖隧道的私家車及電單車實施分時段收費,的士收費為28元,商用車輛收費43元。",
6464
"note.4": "「輕型貨車」包括不超逾5.5公噸的貨車和特別用途車輛。",
6565
"note.5": "「中型 / 重型貨車」包括超逾5.5公噸的貨車和特別用途車輛 (掛接車輛除外 )。",
66+
"references": "參見:",
67+
"references.url": "https://jaylydev.github.io/posts/查看香港實時隧道收費/#資料來源",
6668
"loading": "載入中...",
6769
"unableToCalculate": "無法計算",
6870
"transitionPeriod": "目前為過渡時段",

src/screens/hk-tunnels-tolls/index.tsx

Lines changed: 49 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,49 @@ import { createTranslateFunction, getHreflang, ScreenLocaleProps, TranslateFunct
1212
// Type for localized strings that can be either a plain string or a translation reference
1313
type LocalizedString = string | { id: string };
1414

15+
type VehicleTypeIdentifier = keyof typeof registryInfo.vehicleTypes;
16+
17+
type HKTunnelIdentifier = keyof typeof registryInfo.tunnels;
18+
19+
interface NumberRange {
20+
range: number[];
21+
}
22+
23+
interface TollPeriod {
24+
type: string;
25+
name: LocalizedString;
26+
timeRange: string;
27+
toll: number | NumberRange;
28+
}
29+
30+
interface VehicleType {
31+
hasTimeVaryingToll: boolean;
32+
fixedTolls?: Record<HKTunnelIdentifier, number | undefined>;
33+
multiplier?: number;
34+
description?: LocalizedString;
35+
}
36+
37+
interface TollCardProps {
38+
tunnelKey: HKTunnelIdentifier;
39+
vehicle: VehicleTypeIdentifier;
40+
priceAlert?: string;
41+
currentDate: Date | null;
42+
isPublicHoliday: boolean;
43+
isClient: boolean;
44+
t: TranslateFunction;
45+
}
46+
47+
interface CurrentTollResult {
48+
message: string;
49+
isTransitionTime?: true;
50+
}
51+
52+
interface TunnelTableProps {
53+
tunnelKey: HKTunnelIdentifier;
54+
selectedVehicle: VehicleTypeIdentifier;
55+
t: TranslateFunction;
56+
}
57+
1558
// Helper function to resolve LocalizedString to actual text
1659
function resolveLocalizedString(value: LocalizedString, t: TranslateFunction): string {
1760
if (typeof value === "string") {
@@ -53,43 +96,6 @@ function getHongKongDate(utcDate: Date): { date: Date; dateString: string; timeS
5396
};
5497
}
5598

56-
interface NumberRange {
57-
range: number[];
58-
}
59-
60-
interface TollPeriod {
61-
type: string;
62-
name: LocalizedString;
63-
timeRange: string;
64-
toll: number | NumberRange;
65-
}
66-
67-
interface VehicleType {
68-
hasTimeVaryingToll: boolean;
69-
fixedTolls?: Record<HKTunnelIdentifier, number | undefined>;
70-
multiplier?: number;
71-
description?: LocalizedString;
72-
}
73-
74-
interface TollCardProps {
75-
tunnelKey: HKTunnelIdentifier;
76-
vehicle: VehicleTypeIdentifier;
77-
priceAlert?: string;
78-
currentDate: Date | null;
79-
isPublicHoliday: boolean;
80-
isClient: boolean;
81-
t: TranslateFunction;
82-
}
83-
84-
interface CurrentTollResult {
85-
message: string;
86-
isTransitionTime?: true;
87-
}
88-
89-
type VehicleTypeIdentifier = keyof typeof registryInfo.vehicleTypes;
90-
91-
type HKTunnelIdentifier = keyof typeof registryInfo.tunnels;
92-
9399
function isValidVehicle(vehicle: string): vehicle is VehicleTypeIdentifier {
94100
return Object.keys(registryInfo.vehicleTypes).includes(vehicle);
95101
}
@@ -207,12 +213,6 @@ function HKTollCard(props: TollCardProps): JSX.Element {
207213
);
208214
}
209215

210-
interface TunnelTableProps {
211-
tunnelKey: HKTunnelIdentifier;
212-
selectedVehicle: VehicleTypeIdentifier;
213-
t: TranslateFunction;
214-
}
215-
216216
function TunnelTable({ tunnelKey, selectedVehicle, t }: TunnelTableProps): JSX.Element {
217217
const tunnel = tollData.tunnels[tunnelKey];
218218
const vehicle = tollData.vehicleTypes[selectedVehicle];
@@ -570,6 +570,12 @@ function HKTunnelsTollsApp({ t }: { t: TranslateFunction }): JSX.Element {
570570
: t("loading")}
571571
</span>
572572
</p>
573+
<p>
574+
{t("references")}
575+
<a href={t("references.url")} target="_blank" rel="noopener noreferrer">
576+
{t("references.url").replace(/^https?:\/\//, "")}
577+
</a>
578+
</p>
573579
</div>
574580
</div>
575581
);

0 commit comments

Comments
 (0)