Buddha taught that the mind has the power to create all pleasant and unpleasant objects…

Buddha taught that the mind has the power to create all pleasant and unpleasant objects. The world is the result of the karma, or actions, of the beings who inhabit it. A pure world is the result of pure actions and an impure world is the result of impure actions. Since all actions are created by mind, ultimately everything, including the world itself, is created by mind. There is no creator other than mind.

Venerable Geshe Kelsang Gyatso Rinpoche,
Modern Buddhism