Consciousness is not an illusion. If consciousness was an illusion, it would always be appearing & disappearing, often for extended periods. But, to the contrary, consciousness is generally always functionally active. Consciousness is always seeing, hearing, smelling, feeling, cognizing, etc. Even during unconscious sleep, dreams occur and consciousness becomes active again.
MN 43 says consciousness is an element that feels. MN 43 says:
'It cognizes, it cognizes': Thus, friend, it is said to be
'consciousness.' And what does it cognize? It cognizes 'pleasant.' It
cognizes 'painful.' It cognizes 'neither painful nor pleasant.' 'It
cognizes, it cognizes': Thus it is said to be 'consciousness.'
MN 43
The type of consciousness that feels mental feelings is called 'mano-vinnana'. The 'mano' refers to 'the intellect'. The intellect not only accumulates wisdom but is also the source of intention (per Dhp 1 &2, which is never translated properly). Properly translated, Dhp 1 & 2 says:
The intellect (mano) precedes all doctrines of living (dhamma).
The intellect is their chief; they are all intellect-wrought. If with an impure mind a person speaks or acts suffering follows him like the wheel that follows the foot of the ox.
The intellect (mano) precedes all doctrines of living (dhamma).
The intellect is their chief; they are all intellect-wrought. If with
a pure mind a person speaks or acts happiness follows him like his
never-departing shadow.
Dhammapada
Therefore, the "actor" in Buddhism is the intellect (mano).
It follows the intellect's consciousness of pleasurable & unpleasable feelings is taking the right effort (viriya) to attain nirvana. Consciousness feels what is painful, pleasurable & peaceful and the intellect acts to tune into & develop what is pleasant & peaceful.
It is similar to 'reflex action'. When a hand comes into contact with burning fire, it is the reflex action of the nervous system which removes the hand from the fire.
This is similar to hunger. When the body has hunger pains, the intellect is moved to search for food. It is not "the self" that is hungry but the physical body that is hungry.