The word "beneath" in this sentence is a preposition. Therefore it has its own phrase, a prepositional phrase: "beneath the cabinet." The entire phrase modifies the verb. The entire phrase is part of the predicate.
verb = was carved
complete predicate = was carved beneath the cabinet