Framework
valence-rs/valence avatar
valence-rs/valence

Valence tells you the crates.io release is outdated, and the repository has moved since June

A Rust framework for building Minecraft servers.

3,291 stars172 forksRustMIT

At a glance

What is it?
Valence is a Rust framework for Minecraft Java Edition servers built on the Bevy entity component system. Its default feature list pulls twelve optional sub-crates, its protocol data is generated from a Fabric mod, and its only published release is from September 2022.
Who is it for?
Valence fits people writing a Minecraft server in Rust who want the protocol handled for them and are willing to track a moving target, since the project's own warning about unimplemented features and breaking changes is the first thing its README says. Two decisions come before any code.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 164 days ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • valence-rs/valence3,291 ★ · +18
Star history
Repository2026-09-242026-11-25
valence-rs/valence3.3k3.3k

18 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The published release is from 2022 and the README admits it

Valence is on crates.io and the install line is short, cargo add valence. Immediately after it, the README says the crates.io version is likely outdated, and that the most recent development version should be taken as a git dependency instead:

toml
[dependencies]
valence = { git = "https://github.com/valence-rs/valence" }

The gap is not subtle. The only release listed for the project is v0.1.0, published on 2022-09-03, while the default branch was pushed on 2026-06-15. Documentation for the current code is published separately from the registry, at a rustdoc address built from the main branch. So there are three versions of this library in play for anyone arriving today: a four year old release, a main branch that moves, and documentation generated from that branch rather than from anything a dependency resolver would hand you.

One crate with thirteen default features, each a sub-crate

The manifest is a facade over a workspace of sub-crates, and the feature list is where that shows. Thirteen features are on by default: advancement, anvil, boss_bar, equipment, inventory, log, network, player_list, scoreboard, world_border, command, weather and testing. Twelve of them exist to pull in a dependency, with names like dep:valence_advancement and dep:valence_boss_bar, while testing maps to nothing at all and exists as a marker. The anvil feature is the interesting one because it passes a second flag along, enabling a bevy_plugin feature on valence_anvil. Turning a feature off is therefore a way to leave protocol surface out of your build, and the price is that anything your game logic touches from a disabled crate stops compiling. Two things travel with every build regardless: bevy_app and bevy_ecs.

The Bevy dependency is the ECS, not the whole engine

Look at the dependency list and Valence is not pulling in all of Bevy. It depends on bevy_app and bevy_ecs, plus anyhow, bytes, rand and uuid, and its own ident crates for the identifier macros the rest of the workspace is built on. That is the application and entity component layers rather than the rendering and asset pipeline, which fits the project's own framing: a game engine for Minecraft servers, one that does not do much by default and expects features to arrive as plugins. The README names the plugin system as the extension mechanism and lists dynamic scripting, dedicated executables and vanilla game mechanics as things expected to be built as optional plugins rather than built in. Optionality is therefore the design, stated as a goal twice, once as modular and once as pick and choose the components you need.

Protocol data is generated from a Fabric mod at build time

Some of the protocol surface is not written by hand. The status list describes a Fabric mod that extracts data from the game into JSON files, and a build script that processes those JSON files to generate Rust code for the project, with the JSON itself described as usable in other projects. That is why an extractor directory sits at the top level of the repository next to src, crates, examples and benches. The practical consequence is that the crate carries generated code, and the data it was generated from is the more portable artefact. The same list also marks the limits of the current implementation: anvil file format is read only, and the block, chunk, entity, inventory, item, particle and dimension work is described as achieved rather than complete.

One Minecraft version at a time, with a proxy as the stated workaround

The up to date goal is explicit about its cost. Valence targets the most recent stable version of Minecraft, and support for multiple versions at once is not planned. For older clients, the named answer is a proxy running ViaBackwards, which is how the project expects anyone with a mixed audience to handle it. Everything else in the status list points the same way, toward the current protocol rather than a range: proxy support for Velocity, Bungeecord and Waterfall, a bounding volume hierarchy for fast spatial entity queries, player list and skins, the JSON Text API, and a separate valence_nbt library for the Named Binary Tag format that the list calls speedy and new. The efficiency claim is scoped in the same breath, with very little memory used and thousands of players supported without lag, assuming the bandwidth is there.

Twenty-five examples, run in release mode

The getting started path is one command, and it asks for a release build rather than a debug one:

shell
cargo r -r --example parkour

After that, a Minecraft client connects to localhost. The README suggests three more examples worth trying by name, game_of_life, terrain and cow_sphere, and the examples directory holds twenty-five files in total, from advancement.rs and anvil_loading.rs through combat.rs, ctf.rs, custom_npc.rs, death.rs and equipment.rs to particles.rs, player_list.rs, potions.rs, resource_pack.rs, server_list_ping.rs and terrain.rs. Two of them are not games at all: bench_players.rs is a benchmark sitting alongside the benches directory, and server_list_ping.rs covers the server list ping rather than a world.

MIT for the code, a no-derivatives licence for the logo

The licence section splits the project in two. Code is under MIT, with LICENSE.txt at the root of the repository, while the logo is under CC BY-NC-ND 4.0, which permits reuse of the image but not derivative works and not commercial use. Anyone shipping the logo in their own project's README has to respect that, while anyone depending on the crate only has to satisfy MIT. Maintenance is concentrated in one person: the funding section names a single maintainer, rj00a, with GitHub Sponsors and Patreon links, and the contribution routes are a CONTRIBUTING.md, a Discord server and GitHub Discussions. The tooling in the repository matches a Rust project with a generated-code pipeline, with rustfmt.toml, a typos configuration, a flake.nix and shell.nix for a Nix development shell, and a devcontainer directory.

Editorial conclusion

Valence fits people writing a Minecraft server in Rust who want the protocol handled for them and are willing to track a moving target, since the project's own warning about unimplemented features and breaking changes is the first thing its README says. Two decisions come before any code. Depend on the git repository rather than the crates.io release, because the only published version is v0.1.0 from 2022-09-03 and the README says the registry copy is likely outdated. And decide how you will handle client versions now, because supporting more than the latest is not planned and the stated workaround is a proxy running ViaBackwards. Anyone needing a finished server today should read the current status list first, since anvil loading is read only and several items are still partial.

Frequently asked questions

What is Valence used for?

Building Minecraft Java Edition servers in Rust on top of the Bevy entity component system. The README frames it as a game engine for Minecraft servers that does little by default, with functionality arriving through plugins, including optional ones for dynamic scripting and vanilla mechanics.

How do I add Valence to a Rust project?

cargo add valence pulls the crates.io release, which the README says is likely outdated. For the current code it gives a git dependency on https://github.com/valence-rs/valence, and points at rustdoc built from the main branch for the API documentation.

How do I run one of the Valence examples?

After cloning, run cargo r -r --example parkour and connect a Minecraft client to localhost. The README also suggests game_of_life, terrain and cow_sphere, and the examples directory contains twenty-five example files.

Does Valence support older Minecraft client versions?

Not directly. It targets the most recent stable version of Minecraft and support for multiple versions at once is not planned. The README's stated workaround is running a proxy with ViaBackwards so older clients can connect.

What license applies to Valence?

Code is MIT, with LICENSE.txt in the repository root, while the logo is under CC BY-NC-ND 4.0. The README also states plainly that the project is early in development, with features unimplemented or incomplete and breaking changes expected.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. Releases
  5. valence-rs/valence on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/valence-rs-valence.svg)](https://hysenlabs.com/projects/valence-rs-valence)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/valence-rs-valence.svg)](https://hysenlabs.com/projects/valence-rs-valence)

Was this useful?