Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @e[type=$(type),tag=$(tag)] run function macro:core/dispatch/run
$execute as @e[type=$(type),tag=$(tag)] run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_entity ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a run function macro:core/dispatch/run
execute as @a run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a at @s run function macro:core/dispatch/run
execute as @a at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player_at ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as $(player) at @s run function macro:core/dispatch/run
$execute as $(player) at @s run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# condition:"macro:is_daytime" → only run when predicate passes

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute if data storage macro:tick_work channel{condition:""} run function macro:core/dispatch/run
execute if data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
execute if data storage macro:tick_work channel{condition:""} run return 0

$data modify storage macro:engine _dispatch.func set value "$(fn)"
$execute as @a[limit=1] at @s if predicate $(condition) run function macro:core/dispatch/run
$execute as @a[limit=1] at @s if predicate $(condition) run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
function macro:core/lib/internal/queue_run_func with storage macro:engine _event_tmp[0]
data modify storage macro:engine _dispatch.func set from storage macro:engine _event_tmp[0].func
function #macro:internal/dispatch
data remove storage macro:engine _event_tmp[0]
execute if data storage macro:engine _event_tmp[0] run function macro:events/internal/fire_next
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function macro:core/dispatch/run
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"geo/as_nearby_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
2 changes: 1 addition & 1 deletion 1_20_3/data/macro/functions/systems/logic/if_eq.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp = $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp = $if_b macro.tmp run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion 1_20_3/data/macro/functions/systems/logic/if_gt.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp > $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp > $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp >= $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp >= $if_b macro.tmp run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion 1_20_3/data/macro/functions/systems/logic/if_lt.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp < $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp < $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp <= $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp <= $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute unless score $if_a macro.tmp = $if_b macro.tmp run function macro:core/dispatch/run
execute unless score $if_a macro.tmp = $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @e[type=$(type),tag=$(tag)] at @s run function macro:core/dispatch/run
$execute as @e[type=$(type),tag=$(tag)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/for_each ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(type)","color":"aqua"}]
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# ─────────────────────────────────────────────────────────────────

$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),distance=..$(radius)] at @s run function macro:core/dispatch/run
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),distance=..$(radius)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/for_each_in_radius ","color":"aqua"},{"text":"$(player) r=$(radius) → ","color":"gray"},{"text":"$(type)","color":"aqua"}]
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# ─────────────────────────────────────────────────────────────────

$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),sort=nearest,limit=1,distance=..$(radius)] at @s run function macro:core/dispatch/run
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),sort=nearest,limit=1,distance=..$(radius)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/nearest ","color":"aqua"},{"text":"$(player) → ","color":"gray"},{"text":"$(type) r=$(radius)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @e[type=$(type),tag=$(tag)] run function macro:core/dispatch/run
$execute as @e[type=$(type),tag=$(tag)] run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_entity ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a run function macro:core/dispatch/run
execute as @a run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a at @s run function macro:core/dispatch/run
execute as @a at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player_at ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as $(player) at @s run function macro:core/dispatch/run
$execute as $(player) at @s run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# condition:"macro:is_daytime" → only run when predicate passes

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute if data storage macro:tick_work channel{condition:""} run function macro:core/dispatch/run
execute if data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
execute if data storage macro:tick_work channel{condition:""} run return 0

$data modify storage macro:engine _dispatch.func set value "$(fn)"
$execute as @a[limit=1] at @s if predicate $(condition) run function macro:core/dispatch/run
$execute as @a[limit=1] at @s if predicate $(condition) run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
function macro:core/lib/internal/queue_run_func with storage macro:engine _event_tmp[0]
data modify storage macro:engine _dispatch.func set from storage macro:engine _event_tmp[0].func
function #macro:internal/dispatch
data remove storage macro:engine _event_tmp[0]
execute if data storage macro:engine _event_tmp[0] run function macro:events/internal/fire_next
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function macro:core/dispatch/run
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"geo/as_nearby_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
2 changes: 1 addition & 1 deletion 1_20_5/data/macro/functions/systems/logic/if_eq.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp = $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp = $if_b macro.tmp run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion 1_20_5/data/macro/functions/systems/logic/if_gt.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp > $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp > $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp >= $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp >= $if_b macro.tmp run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion 1_20_5/data/macro/functions/systems/logic/if_lt.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp < $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp < $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp <= $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp <= $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute unless score $if_a macro.tmp = $if_b macro.tmp run function macro:core/dispatch/run
execute unless score $if_a macro.tmp = $if_b macro.tmp run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @e[type=$(type),tag=$(tag)] at @s run function macro:core/dispatch/run
$execute as @e[type=$(type),tag=$(tag)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/for_each ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(type)","color":"aqua"}]
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# ─────────────────────────────────────────────────────────────────

$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),distance=..$(radius)] at @s run function macro:core/dispatch/run
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),distance=..$(radius)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/for_each_in_radius ","color":"aqua"},{"text":"$(player) r=$(radius) → ","color":"gray"},{"text":"$(type)","color":"aqua"}]
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# ─────────────────────────────────────────────────────────────────

$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),sort=nearest,limit=1,distance=..$(radius)] at @s run function macro:core/dispatch/run
$execute as @a[name=$(player),limit=1] at @s run execute as @e[type=$(type),sort=nearest,limit=1,distance=..$(radius)] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"entity/nearest ","color":"aqua"},{"text":"$(player) → ","color":"gray"},{"text":"$(type) r=$(radius)","color":"aqua"}]
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

> Current version: **v4.0.2**

> ⚠️ **Migrated from `ToolkitMC/macroEngine-dp`** — This is the new official repository. The old repo is archived (read-only). See the [Migration Guide](../../wiki/Migration-Guide) for details.

---

> 🛡️ **This is a Minecraft Datapack — it contains no executables or scripts outside of `.mcfunction` files.**
> Some antivirus software may flag `.mcfunction` files as suspicious due to macro-like syntax. This is a **false positive**. The pack has been scanned on [VirusTotal](https://www.virustotal.com) and returned clean.
> **Only download from this official repository.** Do not trust redistributed or repackaged versions from third-party sources.
Expand Down Expand Up @@ -43,7 +39,7 @@ Full API reference, guides, and examples are available in the **[GitHub Wiki](..
```
macro:engine (persistent data)
├── global
│ ├── version: "v4.0.1"
│ ├── version: "v4.0.2"
│ └── tick: <int>
├── players
│ └── Steve { coins:150, level:5, xp:2300, online:1b, ... }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute if entity @e[type=minecraft:interaction,tag=macro.ia_active,tag=$(tag),limit=1] run function macro:core/dispatch/run
$execute if entity @e[type=minecraft:interaction,tag=macro.ia_active,tag=$(tag),limit=1] run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion data/macro/function/core/lib/for_each_entity.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @e[type=$(type),tag=$(tag)] run function macro:core/dispatch/run
$execute as @e[type=$(type),tag=$(tag)] run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_entity ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
2 changes: 1 addition & 1 deletion data/macro/function/core/lib/for_each_player.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a run function macro:core/dispatch/run
execute as @a run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
2 changes: 1 addition & 1 deletion data/macro/function/core/lib/for_each_player_at.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute as @a at @s run function macro:core/dispatch/run
execute as @a at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"lib/for_each_player_at ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as $(player) at @s run function macro:core/dispatch/run
$execute as $(player) at @s run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion data/macro/function/core/queue/internal/exec_as.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# player — player name used in selector

$data modify storage macro:engine _dispatch.func set value "$(fn)"
$execute as $(player) run function macro:core/dispatch/run
$execute as $(player) run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion data/macro/function/core/tick/dispatch/exec.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# condition:"macro:is_daytime" → only run when predicate passes

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute if data storage macro:tick_work channel{condition:""} run function macro:core/dispatch/run
execute if data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion data/macro/function/core/tick/dispatch/exec2.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
execute if data storage macro:tick_work channel{condition:""} run return 0

$data modify storage macro:engine _dispatch.func set value "$(fn)"
$execute as @a[limit=1] at @s if predicate $(condition) run function macro:core/dispatch/run
$execute as @a[limit=1] at @s if predicate $(condition) run function #macro:internal/dispatch
3 changes: 2 additions & 1 deletion data/macro/function/events/internal/fire_next.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
function macro:core/lib/internal/queue_run_func with storage macro:engine _event_tmp[0]
data modify storage macro:engine _dispatch.func set from storage macro:engine _event_tmp[0].func
function #macro:internal/dispatch
data remove storage macro:engine _event_tmp[0]
execute if data storage macro:engine _event_tmp[0] run function macro:events/internal/fire_next
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[nbt={UUID:$(uuid)}] run function macro:core/dispatch/run
$execute as @a[nbt={UUID:$(uuid)}] run function #macro:internal/dispatch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$data modify storage macro:engine _dispatch.func set value "$(func)"
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function macro:core/dispatch/run
$execute as @a[distance=..$(distance),limit=1,sort=nearest] at @s run function #macro:internal/dispatch
$tellraw @a[tag=macro.debug] ["",{"text":"[AME] ","color":"#00AAAA","bold":true},{"text":"geo/as_nearby_player ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(func)","color":"aqua"}]
2 changes: 1 addition & 1 deletion data/macro/function/systems/logic/if_eq.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp = $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp = $if_b macro.tmp run function #macro:internal/dispatch
2 changes: 1 addition & 1 deletion data/macro/function/systems/logic/if_gt.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$scoreboard players set $if_a macro.tmp $(a)
$scoreboard players set $if_b macro.tmp $(b)
$data modify storage macro:engine _dispatch.func set value "$(func)"
execute if score $if_a macro.tmp > $if_b macro.tmp run function macro:core/dispatch/run
execute if score $if_a macro.tmp > $if_b macro.tmp run function #macro:internal/dispatch
Loading