A teenager has admitted hurling threats while armed with a blade.