GrafixersCrew WhatsApp us

Home › AI Game Development › EnTT

What is EnTT? the header-only C++ entity component system used in Minecraft

EnTT is a header-only, tiny and easy to use library for game programming and much more, written in modern C++. It started as a pure entity-component system and grew into a whole toolbox — and it is used in Minecraft, so it has been tested on just about every platform there is.

EnTT in one paragraph

EnTT (github.com/skypjack/entt) is a C++ library built around the entity-component-system pattern — the architecture most modern games use to organise everything in the world, from players to particles. It is header-only, so there is nothing to link and no build step of its own: include the header and it works. It has been going since March 2017, passed 13,300 GitHub stars by December 2026, and is still actively developed — its most recent push at the time of writing was December 2026.

It is released under the MIT licence, so anyone can use it in a free or commercial game. Among others, it is used in Minecraft by Mojang, the ArcGIS Runtime SDKs by Esri, and Ragdoll by Ragdoll Dynamics. The whole API is fully documented, there is a wiki with FAQs and a list of projects using it, and the tools are DLL-friendly across boundaries.

What EnTT actually does

EnTT began as an entity-component system. Over time it grew into a set of tools for game programming — here is what it offers today.

1. A fast entity-component system

The core is an incredibly fast ECS with its own pay-for-what-you-use policy: unconstrained component types, optional pointer stability, and hooks for storage customization. You only pay for the parts you use, and the registry, views and groups give you fast access to exactly the entities you need.

2. Reflection and runtime type information

EnTT ships a built-in, non-intrusive, macro-free runtime reflection system, plus an RTTI system mostly similar to the standard one. You can inspect and manipulate types at runtime without decorating your code with macros.

3. Scheduling, signals and resources

A general-purpose execution graph builder for optimal scheduling, delegates and signal handlers with a tiny event dispatcher, and everything needed for resource management — cache, loaders and handles. There are also a few homemade containers, like a sparse-set based hash map, and static polymorphism made simple.

4. Easy to integrate, anywhere

Header-only means dropping it into a project is trivial, and it is packaged for CMake, vcpkg, Conan and pkg-config. It is also available to try online on Compiler Explorer, and the documentation is generated with Doxygen at skypjack.github.io/entt.

Download and setup

EnTT is header-only: include <entt/entt.hpp> and you are done. You need a full-featured compiler that supports at least C++20. It is available through vcpkg, Conan Center, CMake and pkg-config, and there is a code example in the README that builds a position-and-velocity update in a few lines.

What it costs

EnTT itself is free — MIT licensed, no subscription, no per-game fee. The project accepts sponsorships and PayPal donations, but those are voluntary: the library costs nothing to use, including in commercial games.

Who EnTT is for

C++ game developers

You write games in modern C++ and want an ECS without adopting a whole engine. EnTT is the standard choice — small, fast, and header-only.

Engine builders

You are building your own engine and need the pieces — ECS, reflection, scheduling, signals, resources — without writing all of them yourself.

Studios shipping everywhere

If Minecraft runs on it, EnTT probably does too. The library has been tested on every platform Minecraft ships on, which is most of them.

Teams that value clean architecture

The ECS pattern keeps game logic organised as data and systems instead of deep inheritance trees — and EnTT’s pay-for-what-you-use design means you do not pay for features you never touch.

EnTT at a glance

Honest limits

EnTT is a library, not an engine: it gives you the architecture, but you still build the game — the renderer, the input, the audio, the game itself. It needs a compiler with full C++20 support, so older toolchains will not do. And the API is large: the README says it is fully documented “for those who are brave enough to read it”, which is a fair warning that this is a serious tool with a serious manual, not a five-minute install.

Want a game without doing the setup?

EnTT is the kind of foundation our AI game development service builds on: solid, proven C++ libraries, assembled into a finished game and playtested by hand. Mini-games from £499, full 2D games from £1,499, 3D games from £2,999. You bring the idea; we do the engineering.

Have a game idea?

Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.