The slogan of the protagonist's side is: magic hammer magic hammer change! ! !
I remember that I could turn the small combined robot into reality and found some companions to drive against the enemy.
This is a Korean animation. The protagonist is a little boy and an animal. At first, the boy had a magic hammer that could make things bigger and smaller. Later, the magic hammer fell off, and a flying machine like a Rubik's cube appeared, driven by a little boy. It is very powerful.