minecraft-expanded-resource.../data/undeadmaelys-core/functions/tick.mcfunction

18 lines
682 B
Mcfunction

tellraw @a[scores={me-debugging=1..}] "undeadmaelys-core:tick"
# self init
execute unless data storage undeadmaelys-expanded:core {init_status:1} run function undeadmaelys-core:init
## call other modules & optimization tick distribution
# call weapon hsec every half a sec and for tick every tick
execute if score $current me-core_tickC matches 1 run function undeadmaelys-weapons:hsec
execute if score $current me-core_tickC matches 11 run function undeadmaelys-weapons:hsec
function undeadmaelys-weapons:tick
# manage assigners
execute if score $current me-core_tickC matches 10 run function undeadmaelys-core:assigners
# manage scores
function undeadmaelys-core:scoreboards