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

Commit a2d14be

Browse files
authored
v2.0.4-pre2
1 parent f31e57b commit a2d14be

25 files changed

Lines changed: 100 additions & 74 deletions
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌ [AME] Version conflict detected. Expected v2.0.4-pre1. Run /reload in-game for details."}
1+
setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌ [AME] Version conflict detected. Expected v2.0.4-pre2. Run /reload in-game for details."}
22

3-
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.4-pre1","color":"yellow","bold":true},{"text":" — stored scores do not match.","color":"gray"}]
3+
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.4-pre2","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

66
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

8-
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.4-pre1. Load aborted."
8+
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.4-pre2. Load aborted."
99
function macro:log/warn with storage macro:input {}
1010
data remove storage macro:input message
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
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.4-pre1","color":"yellow","bold":true},{"text":" — stored scores do not match.","color":"gray"}]
1+
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.4-pre2","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

44
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

6-
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.4-pre1. Load aborted."
6+
data modify storage macro:input message set value "❌ Version mismatch — expected v2.0.4-pre2. Load aborted."
77
function macro:log/warn with storage macro:input {}
8-
data remove storage macro:input message
8+
data remove storage macro:input message

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
execute unless data storage macro:engine global run data modify storage macro:engine global set value {version:"v2.0.4-pre1"}
1+
execute unless data storage macro:engine global run data modify storage macro:engine global set value {version:"v2.0.4-pre2"}
22

33
execute unless data storage macro:engine log_display run data modify storage macro:engine log_display set value []
44
execute unless score #ame.log_count macro.tmp matches 0.. run scoreboard players set #ame.log_count macro.tmp 0
@@ -7,9 +7,9 @@ execute if data storage macro:engine global{loaded:1b} run data modify storage m
77
execute if data storage macro:engine global{loaded:1b} run function macro:log/warn with storage macro:input {}
88
execute if data storage macro:engine global{loaded:1b} run return 0
99

10-
execute unless data storage macro:engine global{version:"v2.0.4-pre1"} run data modify storage macro:names temp.vers set value "v2.0.4-pre1"
11-
execute unless data storage macro:engine global{version:"v2.0.4-pre1"} run tellraw @a [{"text":"[AME] ","color":"aqua","bold":true},{"text":"Version mismatch — expected ","color":"red"},{"storage":"macro:names","nbt":"temp.vers","color":"yellow"},{"text":".","color":"red"}]
12-
execute unless data storage macro:engine global{version:"v2.0.4-pre1"} run return 0
10+
execute unless data storage macro:engine global{version:"v2.0.4-pre2"} run data modify storage macro:names temp.vers set value "v2.0.4-pre2"
11+
execute unless data storage macro:engine global{version:"v2.0.4-pre2"} run tellraw @a [{"text":"[AME] ","color":"aqua","bold":true},{"text":"Version mismatch — expected ","color":"red"},{"storage":"macro:names","nbt":"temp.vers","color":"yellow"},{"text":".","color":"red"}]
12+
execute unless data storage macro:engine global{version:"v2.0.4-pre2"} run return 0
1313

1414
scoreboard objectives add ame.pre_version dummy
1515
scoreboard players set #ame.mismatch ame.pre_version 0
Lines changed: 2 additions & 2 deletions
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 4
4-
scoreboard players set #ame.pre ame.pre_version 1
5-
scoreboard players set #ame.ver_set ame.pre_version 1
4+
scoreboard players set #ame.pre ame.pre_version 2
5+
scoreboard players set #ame.ver_set ame.pre_version 1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌ [AME] Version conflict detected. Expected v2.0.4-pre1. Run /reload in-game for details."}
1+
setblock -30000000 0 1600 minecraft:test_block[mode=log]{mode:"log",message:"❌ [AME] Version conflict detected. Expected v2.0.4-pre2. Run /reload in-game for details."}
22
setblock -30000000 1 1600 minecraft:redstone_block
33

4-
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.4-pre1","color":"aqua","bold":true},{"text":" — stored scores do not match.","color":"#555555"}]
4+
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.4-pre2","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

77
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

9-
data modify storage macro:input message set value "✘ Version mismatch — expected v2.0.4-pre1. Load aborted."
9+
data modify storage macro:input message set value "✘ Version mismatch — expected v2.0.4-pre2. Load aborted."
1010
function macro:log/warn with storage macro:input {}
1111
data remove storage macro:input message

data/macro/function/cmd/data_remove_block.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ execute unless dimension minecraft:overworld run return 0
44
execute unless entity @s[gamemode=creative] run return 0
55

66
$data remove block $(x) $(y) $(z) $(path)
7-
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_block","color":"aqua"}]
7+
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_block ","color":"aqua"},{"text":"$(x) $(y) $(z)$(path)","color":"#555555"}]

data/macro/function/cmd/data_remove_entity.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ execute unless dimension minecraft:overworld run return 0
44
execute unless entity @s[gamemode=creative] run return 0
55

66
$data remove entity $(target) $(path)
7-
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_entity","color":"aqua"}]
7+
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_entity ","color":"aqua"},{"text":"$(target)$(path)","color":"#555555"}]

data/macro/function/cmd/data_remove_storage.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ execute unless dimension minecraft:overworld run return 0
44
execute unless entity @s[gamemode=creative] run return 0
55

66
$data remove storage $(storage) $(path)
7-
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_storage","color":"aqua"}]
7+
tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_storage ","color":"aqua"},{"text":"$(storage)$(path)","color":"#555555"}]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ─────────────────────────────────────────────
2+
# macro:engine/call/execute_validated
3+
# Güvenlik doğrulamasından geçmiş fonksiyonu çalıştırır.
4+
# Yalnızca macro:tools/utils/input_check tarafından çağrılır.
5+
#
6+
# Girdi (macro:output.inputs):
7+
# func — çalıştırılacak fonksiyon adı (zaten doğrulanmış)
8+
# Veri (macro:input):
9+
# Fonksiyona aktarılacak tüm parametreler
10+
# ─────────────────────────────────────────────
11+
12+
# Doğrulanmış func adını macro sub-function'a ilet ve çalıştır
13+
function macro:engine/call/execute_validated/run with storage macro:output inputs
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ─────────────────────────────────────────────
2+
# macro:engine/call/execute_validated/run
3+
# Doğrulanmış fonksiyonu macro ile genişletip çalıştırır.
4+
# macro:output.inputs storage'ından $(func) değişkenini alır,
5+
# macro:input storage'ını parametre kaynağı olarak kullanır.
6+
# ─────────────────────────────────────────────
7+
8+
$function $(func) with storage macro:input {}

0 commit comments

Comments
 (0)