function items:mana/tick
function items:stats_calc/tick

function items:wand/player_tick
function items:passive/tick
function items:armor/tick
function items:weapon/tick

execute if entity @s[tag=display_M+K] at @s run function items:hud

execute unless predicate olink:ch1/in_link run function olink:ch1/new_link
execute unless predicate olink:ch2/in_link run function olink:ch2/new_link

tag @s[tag=!player] add player
