Recording your Minecraft adventures is easy with the right, free software.
OBS Studio is the top recommendation—it is free, open-source, and powerful enough for smooth, high-quality capture. NVIDIA ShadowPlay (GeForce Experience) is excellent if you have a compatible Nvidia card, offering low-overhead recording. Other solid picks include Bandicam and the built-in Xbox Game Bar on Windows.
For most players, OBS Studio hits the sweet spot of quality and cost.