Enter the number 1 to generate a colored map icon /blockdata command for minecraft. 2 works as well, but that's not terribly important for you to know why. Look in the code if you care. To get your colored map icon, enter the resulting command into a command block, then put a chest on top. Activate command block.
Made it so you don't have to keep typing '1' or '2' in for it to generate. jonnaFin is an alt.