Elder Sand Wyrm

Traits
Spine Trap. When underground with its spines exposed, the sand wyrm can snap its spines closed on one Large, two medium, or four small or tiny creatures above it. Each creature must make a DC 17 Dexterity saving throw or be restrained. A restrained creature can use its action to make a DC 15 Strength check to free itself or another restrained creature, ending the effect on a success. Creatures restrained by this trait move with the sand wyrm.

Actions
Multiattack. The sand wyrm makes one bite attack and 2 claw attacks. It can replace its bite attack with a sand swallow, or a hurl.

Bite. +11 to hit; 10 ft range; 2d12 + 8 piercing. The hit creature must succeed on a DC 17 Dexterity saving throw or be restrained and lifted 15 feet in the air. This creature can free itself by dealing 15 damage to the sand wyrm's mouth, or by using its action to make a DC 17 Str check.

Hurl. Can only be used on a creature restrained in the wyrm's mouth. Automatic hit, the creature is thrown with great force into the sand, taking 28 (8d6) bludgeoning damage, and being knocked prone in a space 20 feet away.

Claws. +11 to hit; 10ft range, 2d6 + 8 slashing.

Sand Swallow. The Sand Wyrm takes a mouthful of sand into its mouth, preparing its sand breath.

Sand Breath. Sand breath can only be used if the Sand Wyrm has used Sand Swallow previously. 30 foot cone; each creature must make a DC 17 Dexterity saving throw, taking 42 (12d6) piercing damage and be blinded until the end of their next turn, or half as much and not being blinded on a successful one.

'Burrow. 'The sand wyrm dashes beneath the surface of the sand, with only their spines exposed. During this time, they swallow sand, preparing their sand breath.

Legendary Actions
The sand wyrm can take 2 legendary actions per turn, at the end of another creatures turn.

Tail. +11 to hit; 15 feet; 2d6 + 8 bludgeoning damage. The hit creature must make a DC 17 STR saving throw or be knocked 10 feet back and prone.

Sand Bomb. 10 foot radius; 150 foot range. Each creature must make a DC 17 Dexterity saving throw, taking 14 (4d6) bludgeoning damage.