Iron golem skin shows cracks

This is a new game mechanic introduced in the version 2.2 of the Villager Tweaks Mod.

This feature works as a visual indicator of the current health of Iron Golems, similar to the wolf tail. Besides the regular texture, iron golems will have 2 new states: slightly damaged and heavily damaged. When heavily damaged, the golem will also produce smoke particles randomly.

Developer Note
This feature was based on a post from the user Raduloket on the Minecraft Suggestions subreddit. I always thought that vanilla should have a way to check mob's health and I found this suggestion really fitting. At first I wanted to make the damaged golem skin as a separate texture, so effectivelly the golem would alternate between 3 skins. The problem with that approach is that it would not work with custom skins from resource packs.

What I ended ip doing was adding a new render layer to the golem, just like a wolf colar or armor (thanks to redditor sdb2754 for the reminder).

Here is a video of the first version of this feature, with the old graphics: