For example in Minecraft
You have to activate ray tracing in the games yourself and, as mentioned in detail in Minecraft, you need the Windows 10 Edition for the correct Rtx
Only works in the Windows 10 version, not with Java
The official RTX only works in the Win10 version, but it's not worth it.
For the real Minecraft there are path tracing shaders such as SEUS PTGI. They don't use the RT cores of your GPU, but the technology is similar and the shaders also have the RTX effect you want. (and look better than the "official" Mc RTX).
There are several such shaders which SEUS is the best known