You can place metal floor on a shoulder pet and the eggs on the floor and the basilisk will agro on the shoulder pet when neer, and will eat the eggs when ready. the hard part is getting the basilisk over to the trap

More Basilisk Taming & KO Tips