If you are on Plasma 6, it should be “System Settings” - Keyboard - Advanced, select “Configure keyboard options”, and you’ll find the “Caps Lock behavior” - maybe even two, but one of them have a lot of options as to what you want to do with your Caps Lock key.
Next time you want to sail the high seas with Minecraft, try HMCL. Should be less of a hassle.