I'm making a data pack where some players cannot take fall damage. I don't want to use resistance 5 or jump boost 255 as there needs to be PVP and jump boost 255 will launch you in the air with PVP.
My solution is to calculate the amount of fall damage that will be taken. e.g 5 blocks, one heart, and add that on to their existing health with the
/attribute command. However, I cannot find any tutorials on how to detect this distance. Can anybody link a multiplayer-friendly tutorial or give a better solution?
TL;DR: Need no fall damage solution for one specific person in multiplayer