Hi I need help modifying a datapack

This datapack brings back sword blocking in 1.21.5 and makes the block mitigate all damage like shields do. How could I modify this (code? Command? Function?) to do the same thing, but for axes?

Continue to help post