I'm trying to buff Fire Protection by redefining it as 'Elemental Protection' as I plan to give it the properties of Origin's Water Protection alongside protection against the Freeze damage type. However, there are 2 steps of it I don't know how to resolve.
1. How do I rename 'Fire Protection' to 'Elemental Protection'
2. In an EntityEvents.hurt, how do I detect if the damage type of the event is 'freeze'