Skip to content

Real-time webcam streaming in Minecraft! A Fabric mod that captures your webcam and renders it on your player's skin. Features: toggle keybinding, multi-camera support, multiplayer streaming, and configurable resolution/FPS.

License

Notifications You must be signed in to change notification settings

Dalvii/mc-webcamhead

Repository files navigation

๐Ÿ“น WebcamHead - Show Your Face in Minecraft!

Transform your Minecraft skin into a live webcam feed! See your friends' faces on their in-game characters in real-time.

Minecraft Fabric Download

๐ŸŽฎ Download | ๐Ÿ“– How It Works | ๐Ÿš€ Quick Start | โ“ Troubleshooting

WebcamHead Demo


๐ŸŽฏ What is WebcamHead?

WebcamHead is a Minecraft mod that lets you stream your webcam directly onto your player's face. When you're playing with friends, they'll see your real face on your character's head instead of the regular Minecraft skin!

โœจ Features

  • ๐ŸŽฅ Live webcam streaming - Your face appears on your Minecraft character's head
  • ๐Ÿ‘ฅ Multiplayer ready - Everyone in the server can see each other's webcams
  • ๐ŸŒ Web viewer - Watch all players from any browser
  • โšก Low bandwidth - Only ~80 KB/s per player
  • ๐ŸŽฎ Simple controls - Just press V to toggle on/off
  • ๐Ÿ“น Multi-camera support - Choose between different webcams
  • ๐Ÿ”’ Privacy-focused - You control when your webcam is on

๐ŸŽฌ How It Works

  1. You press V โ†’ Your webcam turns on
  2. Face appears โ†’ Your real face shows up on your Minecraft character's head
  3. Friends see you โ†’ Everyone on the server sees your live webcam
  4. Press V again โ†’ Webcam turns off, back to normal skin

No complicated setup, no technical knowledge required!


๐Ÿ’พ Installation

For Players (Client Installation)

Step 1: Download Required Files

  1. Download the WebcamHead mod from the Releases page
  2. Install Fabric Loader:
    • Go to FabricMC
    • Download and run the installer
    • Select your Minecraft 1.21.x version and click Install
  3. Download Fabric API: CurseForge or Modrinth
    • Get the version matching your Minecraft 1.21.x installation

Step 2: Install the Mod

  1. Open your Minecraft folder:

    • Windows: Press Win + R, type %appdata%\.minecraft, press Enter
    • macOS: Open Finder, press Cmd + Shift + G, type ~/Library/Application Support/minecraft, press Enter
    • Linux: Navigate to ~/.minecraft
  2. Put the files in the mods folder:

    • webcamhead-X.X.X.jar (the mod you downloaded)
    • fabric-api-X.X.X.jar (Fabric API you downloaded)
  3. Launch Minecraft with the Fabric profile

Step 3: First Launch

  1. Start Minecraft
  2. Join a world (singleplayer or multiplayer)
  3. Press V on your keyboard
  4. Your webcam should activate! ๐ŸŽ‰

Note: On first use, your operating system will ask for camera permissions. Click "Allow" to let Minecraft access your webcam.

๐ŸŽ macOS Users - Important!

If you're on macOS and the camera permission popup doesn't appear, use Prism Launcher instead of the official Minecraft launcher:

  1. Download Prism Launcher (it's free!)
  2. Create a Fabric instance in Prism Launcher
  3. Add the mod to your instance
  4. Launch the game
  5. Press V โ†’ Permission popup will appear โ†’ Click Allow โœ…

Why? macOS has strict security rules. The official Minecraft launcher doesn't meet macOS's requirements for camera access, but Prism Launcher does.


๐Ÿ–ฅ๏ธ Server Setup

Want to stream webcams with friends? You'll need a streaming server!

Option 1: Docker (Easiest!) ๐Ÿณ

Perfect if you want to deploy on a VPS or server:

# Pull and run the server
docker run -d -p 3000:3000 tdqdev/webcamhead-server:latest

Done! Server is running on http://your-server-ip:3000

๐Ÿ‘‰ For detailed Docker deployment: See streaming-server/README.Docker.md

Option 2: Manual Installation

For local testing or advanced users:

  1. Install Node.js:

  2. Download and start the server:

    cd streaming-server
    npm install
    npm start
  3. Server is ready! You'll see:

    โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
    โ•‘  WebcamHead Video Streaming Server                      โ•‘
    โ•‘  Status: RUNNING                                         โ•‘
    โ•‘  Port: 3000                                             โ•‘
    โ•‘  WebSocket: ws://localhost:3000                         โ•‘
    โ•‘  API: http://localhost:3000/api                         โ•‘
    โ•‘  Web Viewer: http://localhost:3000/viewer              โ•‘
    โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
    

Connect the Mod to Your Server

In Minecraft, type this command:

/webcam server http://YOUR_SERVER_IP:3000

For local testing, use:

/webcam server http://localhost:3000

๐ŸŽฎ Quick Start

First Time Use

  1. Start Minecraft with the mod installed
  2. Join a world (singleplayer or multiplayer)
  3. Press V to toggle your webcam
  4. Look at yourself in third person (F5) - you should see your webcam on your face!

Playing with Friends

  1. Set up a streaming server (see Server Setup)
  2. Everyone runs this command in Minecraft:
    /webcam server http://YOUR_SERVER_IP:3000
    
  3. Everyone presses V to turn on their webcams
  4. See each other's faces on your characters! ๐ŸŽ‰

Web Viewer

Want to see all webcams at once? Open your browser and go to:

http://YOUR_SERVER_IP:3000/viewer

You'll see a grid with everyone's webcam feed!


โŒจ๏ธ Controls & Commands

Keyboard Shortcut

  • V - Toggle webcam on/off

In-Game Commands

Command What it does
/webcam server <url> Connect to a streaming server
/webcam info Show your current settings
/webcam list See all available cameras on your computer
/webcam device <number> Switch to a different camera (0, 1, 2...)
/webcam state Check connection status
/webcam stats View streaming statistics
/webcam join <roomId> Join a specific room (for organizing groups)

๐Ÿ’ก How It Works (Simple Explanation)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Your Webcam    โ”‚  โ† Captures your face
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Minecraft Mod  โ”‚  โ† Puts it on your character
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Streaming Serverโ”‚  โ† Shares it with friends
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Friends' Games  โ”‚  โ† They see your face!
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  1. Your webcam captures video
  2. The mod puts it on your Minecraft skin (128x128 pixels on your face)
  3. The streaming server relays the video to other players
  4. Your friends see your live webcam on your character's head!

Privacy: The webcam only streams when you press V. Press V again to turn it off instantly.


โ“ Troubleshooting

Webcam Not Working

Camera not starting?

  • โœ… Check camera permissions in your OS settings
  • โœ… Make sure no other app is using the camera (Zoom, Skype, etc.)
  • โœ… Try /webcam list to see if your camera is detected
  • โœ… Try a different camera with /webcam device 1

On macOS and permission popup doesn't appear?

Multiplayer Issues

Friends can't see your webcam?

  • โœ… Make sure everyone is connected to the same server: /webcam info
  • โœ… Check you're in the same room: /webcam state
  • โœ… Verify server is running: Open http://SERVER_IP:3000/api/health in browser
  • โœ… Check firewall allows port 3000

Server won't start?

  • โœ… Make sure port 3000 is not already in use
  • โœ… Install Node.js 18 or newer
  • โœ… Run npm install in the streaming-server folder

Performance Issues

Game lagging?

  • Lower webcam quality in config (defaults to 320x240)
  • Reduce FPS (defaults to 15fps)
  • Check your internet connection

High bandwidth usage?

  • Each webcam uses ~80 KB/s upload and download per player
  • With 5 players: ~400 KB/s (still very reasonable!)

๐Ÿ“š Documentation

For more details:


๐ŸŒ System Requirements

Minimum Requirements

  • Minecraft: 1.21.x (any 1.21 version)
  • Mod Loader: Fabric Loader 0.17.3+
  • Fabric API: 0.114.1+ (for your 1.21.x version)
  • Java: 21 or newer
  • Webcam: Any USB or built-in webcam
  • RAM: 4GB minimum (standard Minecraft requirements)

For Server Hosts

  • Node.js: 18 or newer
  • Port: 3000 (or your custom port)
  • Bandwidth: ~80 KB/s per player

๐Ÿค Contributing

Want to help improve WebcamHead? Contributions are welcome!


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Credits

Built with amazing open-source technologies:


Made with โค๏ธ by Thรฉo VIDAL

โฌ† Back to top

About

Real-time webcam streaming in Minecraft! A Fabric mod that captures your webcam and renders it on your player's skin. Features: toggle keybinding, multi-camera support, multiplayer streaming, and configurable resolution/FPS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published