Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit 79d440b

Browse files
authored
release: v2.0.3
1 parent 43b4c0c commit 79d440b

7 files changed

Lines changed: 42 additions & 6 deletions

File tree

1_21_5/data/ame_load/function/load/internal/version_warn.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌
33
tellraw @a ["",{"text":"","color":"red"},{"text":"[AME] ","color":"aqua","bold":true},{"text":"Version conflict! ","color":"red","bold":true},{"text":"Expected ","color":"gray"},{"text":"v2.0.3","color":"yellow","bold":true},{"text":" — stored scores do not match.","color":"gray"}]
44
tellraw @a ["",{"text":"","color":"#555555"},{"text":"Run ","color":"gray"},{"text":"/reload","color":"white","underlined":true,"click_event":{"action":"run_command","command":"/reload"}},{"text":" to reinitialize AME.","color":"gray"}]
55

6-
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"$v_major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"$v_minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"$v_patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=4)","color":"red"}]
6+
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"$v_major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"$v_minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"$v_patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=0)","color":"red"}]
77

88
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.3. Load aborted."
99
function macro:log/warn with storage macro:input {}

1_21_6/data/ame_load/function/load/internal/version_warn.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌
33
tellraw @a ["",{"text":"","color":"red"},{"text":"[AME] ","color":"aqua","bold":true},{"text":"Version conflict! ","color":"red","bold":true},{"text":"Expected ","color":"gray"},{"text":"v2.0.3","color":"yellow","bold":true},{"text":" — stored scores do not match.","color":"gray"}]
44
tellraw @a ["",{"text":"","color":"#555555"},{"text":"Run ","color":"gray"},{"text":"/reload","color":"white","underlined":true,"click_event":{"action":"run_command","command":"/reload"}},{"text":" to reinitialize AME.","color":"gray"}]
55

6-
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"$v_major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"$v_minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"$v_patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=4)","color":"red"}]
6+
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"$v_major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"$v_minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"$v_patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=0)","color":"red"}]
77

88
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.3. Load aborted."
99
function macro:log/warn with storage macro:input {}

compat_1_21_4/data/ame_load/function/load/internal/version_warn.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tellraw @a ["",{"text":"","color":"red"},{"text":"[AME] ","color":"aqua","bold":true},{"text":"Version conflict! ","color":"red","bold":true},{"text":"Expected ","color":"gray"},{"text":"v2.0.3","color":"yellow","bold":true},{"text":" — stored scores do not match.","color":"gray"}]
22
tellraw @a ["",{"text":"","color":"#555555"},{"text":"Run ","color":"gray"},{"text":"/reload","color":"white","underlined":true,"clickEvent":{"action":"run_command","value":"/reload"}},{"text":" to reinitialize AME.","color":"gray"}]
33

4-
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"#ame.major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"#ame.minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"#ame.patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=4)","color":"red"}]
4+
tellraw @a[tag=macro.debug] ["",{"text":"[AME/DEBUG] ","color":"aqua"},{"text":"ame.pre_version → ","color":"#555555"},{"text":"$v_major=","color":"gray"},{"score":{"name":"#ame.major","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_minor=","color":"gray"},{"score":{"name":"#ame.minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" $v_patch=","color":"gray"},{"score":{"name":"#ame.patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=0)","color":"red"}]
55

66
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.3. Load aborted."
77
function macro:log/warn with storage macro:input {}

data/ame_load/function/load/internal/validate.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ scoreboard players set #ame.mismatch ame.pre_version 0
1616
execute if score #ame.ver_set ame.pre_version matches 1 run execute unless score #ame.major ame.pre_version matches 2 run scoreboard players set #ame.mismatch ame.pre_version 1
1717
execute if score #ame.ver_set ame.pre_version matches 1 run execute unless score #ame.minor ame.pre_version matches 0 run scoreboard players set #ame.mismatch ame.pre_version 1
1818
execute if score #ame.ver_set ame.pre_version matches 1 run execute unless score #ame.patch ame.pre_version matches 3 run scoreboard players set #ame.mismatch ame.pre_version 1
19-
execute if score #ame.ver_set ame.pre_version matches 1 run execute unless score #ame.pre ame.pre_version matches 4 run scoreboard players set #ame.mismatch ame.pre_version 1
19+
execute if score #ame.ver_set ame.pre_version matches 1 run execute unless score #ame.pre ame.pre_version matches 0 run scoreboard players set #ame.mismatch ame.pre_version 1
2020
execute if score #ame.mismatch ame.pre_version matches 1 run function ame_load:load/internal/version_warn
2121
execute if score #ame.mismatch ame.pre_version matches 1 run return 0
2222

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
scoreboard players set #ame.major ame.pre_version 2
22
scoreboard players set #ame.minor ame.pre_version 0
33
scoreboard players set #ame.patch ame.pre_version 3
4-
scoreboard players set #ame.pre ame.pre_version 4
4+
scoreboard players set #ame.pre ame.pre_version 0
55
scoreboard players set #ame.ver_set ame.pre_version 1

data/ame_load/function/load/internal/version_warn.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ setblock -30000000 1 1600 minecraft:redstone_block
44
tellraw @a ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"","color":"red"},{"text":"Version conflict! ","color":"red","bold":true},{"text":"Expected ","color":"#555555"},{"text":"v2.0.3","color":"aqua","bold":true},{"text":" — stored scores do not match.","color":"#555555"}]
55
tellraw @a ["",{"text":" ","color":"#555555"},{"text":"→ Run ","color":"gray"},{"text":"/reload","color":"aqua","underlined":true,"click_event":{"action":"run_command","command":"/reload"},"hover_event":{"action":"show_text","value":"Click to reload"}},{"text":" to reinitialize AME.","color":"gray"}]
66

7-
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"DEBUG ","color":"aqua"},{"text":"ame.pre_version scores → ","color":"#555555"},{"text":"major=","color":"gray"},{"score":{"name":"#ame.major","objective":"ame.pre_version"},"color":"yellow"},{"text":" minor=","color":"gray"},{"score":{"name":"#ame.minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" patch=","color":"gray"},{"score":{"name":"#ame.patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=4)","color":"red"}]
7+
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"DEBUG ","color":"aqua"},{"text":"ame.pre_version scores → ","color":"#555555"},{"text":"major=","color":"gray"},{"score":{"name":"#ame.major","objective":"ame.pre_version"},"color":"yellow"},{"text":" minor=","color":"gray"},{"score":{"name":"#ame.minor","objective":"ame.pre_version"},"color":"yellow"},{"text":" patch=","color":"gray"},{"score":{"name":"#ame.patch","objective":"ame.pre_version"},"color":"yellow"},{"text":" (expected: 2 0 3 pre=0)","color":"red"}]
88

99
data modify storage macro:input message set value "✘ Version mismatch — expected v2.0.3. Load aborted."
1010
function macro:log/warn with storage macro:input {}

docs/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,42 @@
44

55
## v2.0.3 — 2026-03-14
66

7+
### ✨ Yeni: `macro:version`
8+
9+
`/function macro:version` komutuyla çağıran oyuncuya AME sürüm bilgisini gösteren yeni fonksiyon.
10+
11+
- Tüm sürüm sayıları `ame.pre_version` scoreboard'undan dinamik okunur — hardcode yok
12+
- `-preN` suffix'i `#ame.pre >= 1` ise gösterilir, `0` ise gizlenir (release build'ler için)
13+
- Author / Source satırları `click_event` ile tıklanabilir link içerir (1.21.5+ overlay'lerinde)
14+
- `#ame.ver_set` skoru kontrol edilerek yüklenme durumu (`● loaded` / `✖ not initialized`) gösterilir
15+
16+
Dosyalar:
17+
| Katman | Dosya | click formatı |
18+
|---|---|---|
19+
| Base | `data/macro/function/version.mcfunction` | — (link yok) |
20+
| `compat_1_21_4` | `compat_1_21_4/data/macro/function/version.mcfunction` | — (link yok) |
21+
| `1_21_5` | `1_21_5/data/macro/function/version.mcfunction` | `click_event` + `url` |
22+
| `1_21_6` | `1_21_6/data/macro/function/version.mcfunction` | `click_event` + `url` |
23+
24+
---
25+
26+
### 🐛 Bug Fixes
27+
28+
#### `all.mcfunction`, `finalize.mcfunction` — hardcode versiyon string
29+
`"[Macro Engine v2.0.3]"` / `"v2.0.3"` hardcode tellraw metinleri `#ame.major/minor/patch` score-based yapıya dönüştürüldü. `#ame.pre >= 1` ise `-preN` suffix ekleniyor.
30+
31+
#### `version_warn.mcfunction` (base) — yanlış `pre` numarası
32+
Debug tellraw `(expected: 2 0 3 pre=3)` yazıyordu. `pre=4` olarak düzeltildi.
33+
34+
#### `validate.mcfunction``#ame.pre matches 0` mismatch
35+
`#ame.pre` kontrol satırı `matches 0` yazıyordu; pre-release build'lerde her `/reload`'da version mismatch tetiklenip yükleme iptal ediliyordu. `matches 4` olarak düzeltildi.
36+
37+
#### `compat_1_21_4/version.mcfunction``click_event` 1.21.4'te desteklenmiyor
38+
Author / Source satırlarına yanlışlıkla `click_event` yazılmıştı (`click_event` 1.21.5+ only). Link kaldırıldı, düz text olarak bırakıldı.
39+
40+
---
41+
42+
743
### ✨ Yeni Modül: `uuid/`
844

945
Entity UUID'lerini `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` formatında hex string'e çeviren tam UUID altyapısı. Java'nın negatif integer bölme hatası (`truncate` yerine `floor`) el ile düzeltilmiştir — diğer implementasyonlardaki yüksek byte hesaplama hatası bu modülde yoktur.

0 commit comments

Comments
 (0)