Crates.io | valence |
lib.rs | valence |
version | 0.2.0-alpha.1+mc.1.20.1 |
source | src |
created_at | 2022-01-20 14:41:32.207486 |
updated_at | 2023-08-11 16:51:16.251067 |
description | A framework for building Minecraft servers in Rust. |
homepage | |
repository | https://github.com/valence-rs/valence |
max_upload_size | |
id | 517682 |
size | 348,037 |
A Rust framework for building Minecraft: Java Edition servers.
Built on top of Bevy ECS, Valence is an effort to create a Minecraft compatible server completely from scratch in Rust. You can think of Valence as a game engine for Minecraft servers. It doesn't do much by default, but by writing game logic yourself and leveraging Bevy's powerful plugin system, you can make almost anything.
Opinionated features like dynamic scripting, dedicated executables, and vanilla game mechanics are all expected to be built as optional plugins. This level of modularity is desirable for those looking to build highly custom experiences in Minecraft such as minigame servers.
⚠️ Valence is still early in development with many features unimplemented or incomplete. Expect to encounter bugs, limitations, and breaking changes.
Valence aims to be the following:
Here are some noteworthy achievements:
valence_nbt
: A speedy new library for Minecraft's Named Binary Tag (NBT) format.Here is a short video showing the examples and some of Valence's capabilities.
After cloning the repository, run
cargo r -r --example
to view the list of examples. I recommend giving parkour
, game_of_life
, terrain
, and cow_sphere
a try.
Next, open your Minecraft client and connect to the address localhost
.
If all goes well you should be playing on the server.
Valence is published to crates.io. Run cargo add valence
to add it to your
project. Documentation is available here.
However, the crates.io version is likely outdated. To use the most recent development version, add Valence as a git dependency
[dependencies]
valence = { git = "https://github.com/valence-rs/valence" }
View the latest documentation by running cargo d --open
in your project.
Contributions are welcome! Please see CONTRIBUTING.md. You can join Discord or GitHub Discussions to discuss the project and ask questions.
Code is licensed under MIT while the Valence logo is under CC BY-NC-ND 4.0
If you would like to contribute financially, consider sponsoring me (rj00a) on GitHub or Patreon.
I would love to continue working on Valence and your support would help me do that. Thanks!