Scripting via in Eagle library
Yes you cannot place vias in a package design.

Instead of it you can use pads with different shapes.

You can use the tool on the left or you can use the command like this:

PAD [diameter] [shape]

For a round pad (like a via) you can type:

pad 1.2mm round