use a variable and save there your coords , and then scheduleDelayedTask like 40 ticks and there check the distance ^^