Players, mobs, and animals take 2 hearts of damage every half second they come in contact with the lava and set it on fire.The longer you are in the lava, the more you will burn when you come out..