For a trap place a singular metal platform and put a lightpet or dodo underneath and put the eggs on top of the platform. The basilisk will target the lightpet and can't burrow since it will be on the platform. Just don't take the basilisk aggro off the lightpet and you'll be fine.

More Basilisk Taming & KO Tips