Dive into a world of creativity and exploration with this basic Minecraft clone developed using React and Three.js.
This project allows you to add and remove blocks, enhanced with essential textures that capture the essence of the original game. Navigate freely with movement in all directions and jumping capabilities across varied terrains. Additionally, enjoy the functionality to save your progress or reset the world as you see fit. This clone not only replicates key features of Minecraft but also provides a stable platform for further expansion and customization of your gaming experience.
or
To get started locally with "Minecraft Clone", follow these simple steps:
Tip
I recommend installing Node Version Manager and using the stable version.
# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# Check the version of nvm installed
nvm --version
# Install the stable version of Node
nvm install stable
# Check the version of Node installed
node -vImportant
Node.js: Ensure that you have Node.js installed on your system.
- Clone the repository to your local machine:
git clone https://github.com/JorgeSarricolea/Minecraft-Clone
- Navigate to the project directory:
cd Minecraft-Clone
- Install Node dependencies:
pnpm install
- Run the development server:
pnpm run dev
Some of the key features of this project include:
- Block Manipulation: Ability to add and remove blocks within the virtual world.
- Mobility: Movement in all directions and jumping capabilities.
- Save and Reset: Options to save the current world state or reset it entirely.
- Cube: The primary component representing each block in the world. Manages the physical and visual properties of the blocks.
- TextureSelector: Interface for selecting different textures or types of blocks before placing them in the world.
- World Map: Component that handles the terrain layout and block placement, ensuring the world is coherent and navigable.
- Player Controls: Manages user input for movement and interaction with the world, including keys for moving and jumping.
- Save/Load System: System to save the current world state to a file and load it later, allowing for game environment persistence.
I have deployed it with Netlify Platform, it provides an easy way to deploy projects using Next.js, Vite, React, etc.
While contributions to this project are welcome. If you would like to contribute, feel free to fork this repository and submit a pull request.
This project was created by Jorge Sarricolea. if you have any specific code questions or would like to chat about programming, feel free to contact me on WhatsApp.