Fall damage

hey guys,
For me IT feels like The fall damage is kinda random… today i jumped of 7 blocks and died with Full life, a half week before, 12 blocks didnt Even Make me loose half Life! does someone know how the fall dmg is calculated? does the dmg depend in the Underground??

i Hope You guys can help me! :wink: