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
Expand Up @@ -5,4 +5,4 @@
# condition:"" → always run (no predicate check)

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute unless data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
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 @@ -20,5 +20,5 @@ execute if score #check macro.tick matches ..-1 run scoreboard players operation
execute unless score #check macro.tick matches 0 run return 0

# Passed → execute channel function
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute if data storage macro:tick_work channel.condition run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
execute if data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# condition:"" → always run (no predicate check)

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute unless data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
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 @@ -20,5 +20,5 @@ execute if score #check macro.tick matches ..-1 run scoreboard players operation
execute unless score #check macro.tick matches 0 run return 0

# Passed → execute channel function
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute if data storage macro:tick_work channel.condition run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
execute if data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
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 @@ -5,4 +5,4 @@
# condition:"" → always run (no predicate check)

$data modify storage macro:engine _dispatch.func set value "$(fn)"
execute unless data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
execute if data storage macro:tick_work channel{condition:""} run function #macro:internal/dispatch
4 changes: 2 additions & 2 deletions data/macro/function/core/tick/dispatch/rate_check.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ execute if score #check macro.tick matches ..-1 run scoreboard players operation
execute unless score #check macro.tick matches 0 run return 0

# Passed → execute channel function
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute if data storage macro:tick_work channel.condition run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
execute if data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec with storage macro:tick_work channel
execute unless data storage macro:tick_work channel{condition:""} run function macro:core/tick/dispatch/exec2 with storage macro:tick_work channel
6 changes: 4 additions & 2 deletions data/macro/function/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ execute unless entity @a run return 0
# Guard: engine not initialised
execute unless data storage macro:engine global{loaded:1b} run return 0

# Online player count — kept for compatibility
execute store result score #online macro.onlinePlayers if entity @a

# Guard: globally paused (macro:core/tick/pause / macro:core/tick/resume)
execute if data storage macro:engine tick{paused:1b} run return 0

# Online player count — kept for compatibility
execute store result score #online macro.onlinePlayers if entity @a
execute as @a run function macro:core/tick/dispatch
Loading