Giant Caterpillar, Variant (5e Creature)
From D&D Wiki
Feature Name. Feature description
Action Name. Melee Weapon Attack: +X to hit, reach 5 ft., one target. Hit: X (1dX + X) damtype damage.
The can take 3 legendary actions, choosing from the options below. Only one legendary action option can be used at a time and only at the end of another creature's turn. The regains spent legendary actions at the start of its turn.