minecraft-expanded-datapack/data/undeadm-core/functions/tick.mcfunction

18 lines
618 B
Mcfunction

tellraw @a[scores={me-debugging=1..}] "undeadm-core:tick"
# self init
execute unless data storage undeadm-core:init {status:1} run function undeadm-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 undeadm-m1:hsec
execute if score $current me-core_tickC matches 11 run function undeadm-m1:hsec
function undeadm-m1:tick
# manage assigners
execute if score $current me-core_tickC matches 10 run function undeadm-core:assigners
# manage scores
function undeadm-core:scoreboards