You need raw fish to attract cats. Besides, you also need to make sure that you are in a safe place to attract a cat. Stay calm and offer raw salmon or cod to the cat. You need to kill or trade fish for your cats. Also, try to avoid loud noise and don’t run when taming a cat in Minecraft.