valence-rs / valence
- среда, 7 сентября 2022 г. в 00:34:25
A Rust framework for building Minecraft servers.
A Rust framework for building Minecraft: Java Edition servers.
Like feather, Valence is an effort to build a Minecraft compatible server completely from scratch in Rust. The difference is that Valence has decided to organize the effort a little differently. All game logic is behind a trait. This approach has many advantages. Features such as a plugin system, dedicated executable, and vanilla game mechanics can be implemented on top of Valence. Valence is a Rust library like any other.
In the future we may decide to reimplement vanilla game mechanics as a separate project. If you're developing something like a minigame server without need for vanilla game mechanics, you can depend on Valence directly.
Valence aims to be the following:
Valence is still early in development with many features unimplemented or incomplete. However, the foundations are in place. Here are some noteworthy achievements:
Here is a short video showing the examples and some of its current capabilities.
You may want to try running one of the examples. After cloning the repository, run
cargo r -r --example conway
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.
Contributions are welcome! Take a look at the issue tracker to see what needs to be done. You can also join the Discord 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 (soon?) or Patreon.
I would love to continue working on Valence and your support would help me do that. Thanks!