In Minecraft, you must approach a fox gently while clutching a tasty fruit. Wait for the fox to approach you while holding the fruit. When the fox gets close enough, use the berry to right-click on it and feed it. Repeat until hearts appear over the fox’s head, suggesting that it has been tamed.
How to tame foxes in Minecraft?