execute as @a if predicate game:selected/map run function game:map/print
execute as @a if predicate game:selected/map at @s if score @s cast matches 1.. at @e[tag=center,sort=nearest,limit=1] run function game:map/find_tp
execute as @a[tag=!display_M+K] unless predicate game:selected/map run tag @s add display_M+K
