Minecraft wiki entry for Sprinting, associated text: Sprinting ends when the player collides with a solid block at an angle of greater than 5.5 degrees[check the code][note 1], sneaks, blocks or attacks a mob. If none of these happen, the player automatically stops sprinting after 30 seconds.[note 2] Sprinting also ends if the hunger bar reduces to 6 () or less.