Stonecutter Damage
This mod gives the stonecutter the ability to damage any creatures that walk on it. Upon contact with the tool, mobs take 1 point of damage (half a heart).
The mechanic works extremely simply and effectively - it applies to all types of mobs in the game. However, the developer has provided the ability for fine-tuning the system.
You can create a blacklist of creatures that will not take damage from the stonecutter. To do this, use the entity_types tag with the identifier #stonecutter_damage:blacklist. The configuration file is located at stonecutter_damage/tags/entity_types/blacklist.json.
Interestingly, village residents are already included in this exception list by default. This prevents a situation where an entire village could become empty because its inhabitants accidentally step on stonecutters and take damage.