execute as @e[tag=npc_d_1] run scoreboard players add @s time 1
execute as @e[tag=npc_m1] at @s if score @s time = @e[tag=npc_d_1,limit=1] time at @s run tp @e[tag=npc_d_1] ~ ~ ~ ~ ~
execute if score @e[tag=npc_d_1,limit=1] time >= #end_m1 time run tag @e[tag=npc_d_1] add npc_d_1b
execute if score @e[tag=npc_d_1,limit=1] time >= #end_m1 time run scoreboard players reset #npc_m1 V