I saw the movie on TV when I was a kid, that's like at least 15 years ago.
The setting of the movie was western.
There was this carnval thing going on. A boy as an escapist tries to do a trick escaping from a box, but things go wrong.
The boy meets with this old native american guy and befriends him.
The old native american teaches the boy about reality and magic and senses and stuff.
The old native american does some magic, like snapping his fingers and whole village appear in the middle of the desert, he does that to teach the boy about his senses, I believe.
The old native american gives the boy a necklace as a gift.
The movie ends with the boy, now a man, telling the story. He is told that after things went wrong with his escape from the box stunt, he was in coma and there was no magical native american old man. He says that he is not sure, since he already has the necklace.