I made a pickaxe that on right click destroys a block and drops it, but when you right click red wool with it you get white wool, when you right click grass you get shrub, when you right click diorite you get stone, etc.
How would I make the pickaxe drop the right block with the right data value?