This mod allows you to define items that are banned from breaking certain blocks.
Item/Block IDs can be defined using their string id, e.g. minecraft:stone or, you can use their numerical id, e.g. 1. Additionally, metadata is supported so that you can define specific blocks like Coarse Dirt (3:1).
By using * instead of an ID, every block/item will be targeted.
The following example will prevent diamonds from being used to break Course Dirt, All types of Stone as well as Grass Blocks:
minecraft:diamond=dirt:1,1,minecraft:grass