You act to achieve those mental states.
There are actions that get you directly to your desired mental states.
And there are actions that get you indirectly - meaning they get you to a certain external situation, which will get you to your desired mental states.