Change your preferences here.
This move lasts for 2-5 turns as a passive effect, so the user can choose other moves after using this while it is still in effect. It does 1/16 damage at the end of the turn for each turn in effect, and prevents the target from switching. The effect goes away when the user switches, even if the 2-5 turn counter isn't up.
Sand Tomb is a Ground-type equivalent, though physical.
Whirlpool is a Water-type equivalent.
Clamp is a Water-type equivalent, but with more power.