In 1.20.5, mojang has added the scale attribute, making it easy to change the size of any entity. With the help of it, I have made this small plugin, which will change the size of all living entities on your server under certain conditions!
With this plugin enabled, if an entity takes damage, it will shrink, and once they heal, they will grow back to their original size!
This even works for players!
The plugin can be toggled on/off with the command /healthscale enable/disable
And you can also disable it working on specifically player with /healthscale toggle_scale_players
If you encounter any issues or have any questions, please open an issue on GitHub and don't post them in the reviews.
Equally, if you want to contribute to this project, you can also do this on GitHub!
Thank you in advance