A voxel-based building game created with React, Three.js, and JavaScript. Build and explore in a 3D world with familiar Minecraft-like mechanics.
- 🏗️ Place and destroy blocks
- 🎨 Multiple block types:
- Dirt
- Grass
- Glass
- Wood
- Log
- 🎵 Dynamic sound effects
- 🎮 First-person controls
- 💾 Save and load world functionality
- 🎵 Background music
- Movement: WASD
- Jump: Spacebar
- Block Selection: 1-5 keys or scroll wheel
- Place Block: Left Click
- Remove Block: Alt + Left Click
- Menu: M
- Block Types:
- 1: Dirt
- 2: Grass
- 3: Glass
- 4: Wood
- 5: Log
- React
- Three.js
- React Three Fiber
- React Three Cannon
- Zustand (State Management)
- Vite
- Node.js (v14+ recommended)
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/minecraft-clone.git- Navigate to the project directory:
cd minecraft-clone- Install dependencies:
npm install- Start the development server:
npm run dev- Open the game in your browser:
http://localhost:5173npm run buildThe build will be in the dist folder.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Minecraft
- Textures based on the original Minecraft textures
- Sound effects created for similar voxel-based games
- Multiplayer support
- More block types
- Inventory system
- Day/night cycle
- Mobile support
