Red Card
From Pixelmon Wiki
A Red Card is a one-use held item that forces the opponent to switch out if it directly attacks the holder. It will not function if there are no Pokémon on the opponent's side for the opponent to switch into. Red Cards can be obtained from boss Pokémon, PokéLoot chests, or Pickup.