This project leverages computer vision to allow you to control Minecraft using the pose of your head and hand gestures.
- Mouse Movement: Look around in real life to control the in-game camera.
- Left Click: Close your right hand to hold the left click button (for breaking blocks and hitting).
- Right Click: Touch your right hand's index finger and thumb to right-click (for placing blocks).
- Move Forward: Open your left hand to press 'W' (to move forward).
- Inventory: Lift two fingers on your left hand (✌) to press 'E' (to open the inventory).
-
Clone the Repository:
git clone https://github.com/Sal-Faris/Minecraft_Gesture_Control.git cd Minecraft_Gesture_Control
-
Install the Required Packages:
pip install opencv-python mediapipe pydirectinput
-
Run the Main Script:
python main.py
-
Start Minecraft and play with Gesture Controls
- Ability to scroll through the hotbar
- Prevent accidental inventory openings by requiring the two-finger sign for some time
- Ability to jump
- Require lifting only the index and middle fingers to open the inventory rather than lifting any two fingers
- Implement GUI
This project is licensed under the MIT License. See the LICENSE file for details.
This project uses the following libraries:
Enjoy a new way of playing Minecraft!