I was visiting my in-laws. My son, 2 years old, slipped and fell down while playing. He started crying and nothing seem to console him. Then my Mother-in-law pulled the age old trick that worked like magic!
She said to my son, "Oh my dear, who hurt you? Was that the floor? Here we will punish the floor". Having said that, she hit lightly on the floor where my son had fallen. Having seen the "person" that hurt him being punished, my son stopped crying! Further he was encouraged, to hit the floor himself so that it is all over.
I call this technique "Blame on others for your mistakes". This is BAD, never use this technique or teach any child to do it. It sure is going to work for the short term, but what we are essentially teaching the child is: It is perfectly fine to put blame on others, and punish them, for a mistake that happened to you.
What should we rather do? To begin with, don't try to blame anyone. Tell the child that it is Ok to fall. Kids might not understand or listen and may not stop crying, but then we are teaching them the right thing. Keep telling the child: It is ok to fall. It is ok to feel the pain. Everyone falls once in a while, we just need to get up and get going. Slowly, but surely he will get the message.
Let me warn you; Children most likely won't understand this message fully. My son didn't seem to. So what I did was, at a later point I just enacted the whole thing for him. Couple of times I acted as if I slipped and fell down. Couple of times I laughed about it and other times I just got up and went ahead. If he asked, I tell him, it hurt a little but it was real fun. That worked like magic, err... even though this magic took a little longer and was lot more harder. My son rarely cried after falling, but even when he did, he never tries to take it on someone else.
PS.
There are variations of this "Blame on others for your mistakes" technique. Be aware and avoid all of them. "Taking the pain and giving it to someone else" is one of the variants. In this technique, the "parent" will make an action as if they are literrally taking the pain from the child and giving it to someone else. Like the ceiling fan or the poor crow which till then was merrily flying outside.