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.
If you are looking to get a basilisk on crystal isles don’t even try without forcetame or spawn rock drakes due to the drakes not spawning. Thanks for adding acid spitting snakes on the map TAHT CANT BE TAMED