@maxxb123 Get player location and the block location, then use Location#distance or Location#distanceSquared to measure the distance between both locations.