To tame either a Boar, Wolf, or Lox, you must feed it food. You can do this by simply dropping food on the ground. Yellow hearts will appear, confirming that the creature is being tamed.