"Very" in the sentence is an adverb as it is modifying an adjective "nice" in the sentence.
An adverb is <em>"a word or phrase that modifies or qualifies an adjective, verb or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc."</em>