Minecraft game clone written in Rust.
Minecraft game clone written in Rust, using the Bevy game engine.
You can download the game for Windows and Linux from the Releases page of the GitHub repository.
Once downloaded, extract the archive for your operating system. The executable will be located in the /bin folder of the extracted directory.
There are 2 AUR packages available for rustcraft:
You can install them using your preferred AUR helper, e.g. paru:
paru -S rustcraft| Category | Action | Key(s) |
|---|---|---|
| Movement | Jump | Space |
| Strafe Left | A / Arrow Left | |
| Strafe Right | D / Arrow Right | |
| Walk Backward | S / Arrow Down | |
| Walk Forward | W / Arrow Up | |
| Toggle Fly Mode | F | |
| Fly Up | Space | |
| Fly Down | Left Shift | |
| Gameplay | Destroy Block | Left Mouse Button |
| Place Block | Right Mouse Button | |
| Inventory | Open/Close Inventory | E |
| Pick up stack | Left Click | |
| Pick up half of stack | Right Click (with empty mouse) | |
| Deposit 1 item | Right Click (over valid stack) | |
| Deposit MAX items | Left Click (over valid stack) | |
| Exchange stacks | Left Click (over a different stack or full valid stack) | |
| Miscellaneous | Toggle FPS Display | F3 |
| Toggle Perspective | F5 | |
| Toggle Chunk Debug | F4 | |
| Toggle Block Debug | F6 | |
| Toggle Raycast Debug | F7 | |
| Decrease Render Distance | O | |
| Increase Render Distance | P | |
| Exit Game | Escape |
To build and run this project, you need the following tools and dependencies installed:
rustup install nightly
rustup default nightly
rustup component add rustc-codegen-cranelift-preview --toolchain nightlycargo install justNote: You can also install Just using your system's package manager.
Install the required dependencies based on your operating system:
Justfile and scripts run correctly. Download and install Git Bash.PATH. You can verify it by running:bash --versionsudo pacman -S base-devel mold clang vulkan-radeon vulkan-toolsvulkan-radeon with:vulkan-intel for Intel GPUs.nvidia-utils for NVIDIA GPUs.sudo apt install -y build-essential mold clang mesa-vulkan-drivers vulkan-tools pkg-config libasound2-dev libudev-devsudo apt install -y nvidia-driver nvidia-vulkan-icdTo compile and run the game locally, use the following commands:
Note: the first compilation will be slow depending on your hardware, next compilations will be incremental and thus faster.
# Clone the repository
git clone https://github.com/c2i-junia/rustcraft
# Navigate to the project directory
cd rustcraftDebug mode:
./run1.sh # this will compile the project and run the client
./run-server.sh # (optional) do this only to test multiplayer featuresRelease mode:
# Build the project in release mode
just generate-release-folder
# Run the executable
./release/bin/rustcraft # run the client
./release/bin/rustcraft-server # (optional) do this only to test multiplayer featuresFeel free to submit issues or open pull requests. If you want to know where to help, refer to the existing issues.
Run cargo fmt before committing.
We follow the Conventional Commit specification. Our commit types are inspired by the Karma specification
[optional scope]:
[optional body]
[optional footer(s)]Allowed values:
Write commit messages in the present tense (e.g., "Add feature X" instead of "Added feature X").
/ for branches introducing new features. Only use lowercase letters, numbers, and dashes.main branch should always compile successfully and be free of warnings. Use cargo check.No open issues yet, or sync has not completed.