Block Ban | Prevent Blocks from being Broken
This mod allows you to configure restrictions on breaking specific blocks using certain tools. You can specify which items will be unable to break particular blocks in your world.
Configuration uses block and item identifiers. Both text designations (for example, minecraft:stone) and numeric codes (for example, 1) are available. Metadata specification is also supported, allowing you to precisely define specific block variants such as Coarse Dirt (3:1).
If you use the * symbol instead of a specific identifier, the rule will apply to all blocks and items.
Example configuration that prevents diamond tools from breaking Coarse Dirt, all types of stone, and grass blocks: minecraft:diamond=dirt:1,1,minecraft:grass