I was wondering if it was possible to modify the damage system by adding an API. I know that you can create a different damage system by defining the function on_use (). For example, could change the damage by adding certain information contained in the metadata of items wielded. However, a function like that is not fast and it is not comfortable.
So I thought it would be nice if someone with a lot of programming skills could create a new API that should be, more or less, so (if someone has not a better ideas):
minetest. redefine_system_damage (puncher, punched, itemstack, extras)
if this function call would overwrite the damage system, otherwise the damage system would be the default.
I think it's a nice idea, but it is possible to achieve it? is it difficult? What can I do to help this to be done?