Data and version updates

Vanillite targets exactly one version: the newest release. Today that is Minecraft 26.3.

All game data comes from Mojang's official server file. The repository does not hold it: it only pins the version (name, download address and checksum of the server file). The data is made when Vanillite is built:

flowchart LR
  P[Pinned version] --> J[Official server.jar]
  J --> R[Data reports and extractor]
  R --> C[Cache on your machine]
  C --> G[Generated Rust tables]
  G --> V[Vanillite]

The first build downloads the server file, checks its checksum, runs Mojang's own data generator and Vanillite's extractor, and keeps the result in a cache folder (once per machine; later builds reuse it). A Java Development Kit is needed for that and is downloaded if none is installed (see Installation). The cache also keeps the world generation files of Vanilla's built-in data pack (density functions, noises, noise settings and material rules). The build of the generator reads them to prepare the compiled density loops for Vanilla's own world settings.

The same extractor records the goldens for the parity tests. For world generation it also has a sweep (cargo xtask worldgen sweep): Vanilla's own generator makes whole areas for many seeds in every world type, and Vanillite's generator is compared with them. A second sweep (cargo xtask light sweep) does the same for light: Vanilla's light engine lights such areas and follows a script of block changes, and Vanillite's light must match after every step (see How parity is tested). Item behaviour also comes from this data: what food gives, how long eating takes, what a shield blocks, what a spear or a trident does are read from the items' components in the generated tables, not coded per item name. So a new item of a version update works as Mojang defined it.

Read from the data packs, not coded (since 0.1.0-beta.4): where Vanilla itself reads a rule from data, Vanillite reads it from the same data and turns it into a fast lookup when the data is loaded. Examples: the block and entity type tags that decide where mobs may stand, spawn or are cured (cats, villagers, zombies, doors, coral, freeze-immune wearables), the damage type tags (what a wolf's armour, witches, the Wither, guardians or silverfish react to), the enchantment lists that equip mobs, pillagers and raids, what a dimension's light, attributes and timelines are (taken from its dimension type), and the spawn conditions and sound variants of mob variants. Enchantments are read from Vanilla's data with their world effects too. A data pack that changes these tags or a dimension's type therefore changes the game like it does on Vanilla.

How a version update works

Step What happens
Check Every night, a check compares the pinned version with Mojang's version list and reports when a newer release is out.
Preview One command takes the new version (also a pre-release or snapshot), extracts the data, regenerates goldens in a separate copy, runs the tests there and writes a change report: protocol, packets, registries, blocks, items, entities, data pack, goldens, failing tests and the parts of the code they affect. Vanillite itself stays on the old version.
Switch For a full release, the same command makes the switch: it pins the new version and adds it to the image list of the Pterodactyl eggs; then the team fixes what the report lists. The data of the outgoing version stays available, so its clients can still join (see below).

Mojang's files are never shipped with Vanillite or stored in its source code. The Vanilla data pack (biomes, dimensions, structures, tags, loot tables, recipes and fuels) is taken from the official server file: Vanillite downloads it from Mojang on the first start and keeps it in the cache folder (see First start).

Your own data packs

Like on Vanilla, data packs go into the world's datapacks folder, as folders or zip files. /datapack lists, enables and disables them, and /reload loads them again while the server keeps running. Packs are treated as untrusted input: their size is limited and links out of the folder are refused (see Security by design). Packs can also add dimensions (data/<namespace>/dimension/<name>.json): they are loaded at start like on Vanilla, with their own world folder (see World storage). The noise generator of such a dimension may name a file of noise settings or, like in Vanilla 26.3, carry the settings inline in the dimension file; both are compiled the same way. In the development version (not in beta.4), all of Vanilla's loot item modifiers (for example set_item, set_attributes, set_contents and fill_player_head) and loot conditions work in packs, and the same predicate rules apply in /execute if predicate, @e[predicate=…], /loot and /item. Also in the development version: the loot of the game itself (block drops, explosions, mob drops, fishing, chests, piglin bartering and gifts) uses the full predicate rules, so a pack's conditions on equipment, effects, team, position, biome, the killer or a block entity work there too; copy_name, copy_components and copy_custom_data also copy from entities, the block entity, the tool or a command storage; tags such as #namespace:name can stand for loot tables, predicates and item modifiers; /item and execute if items take slot sources (limit_slots, slot_range, contents and more); and the filter section of pack.mcmeta hides the matching files of lower packs (registries, tags, loot tables, recipes, functions and advancements).

Worlds after an update

Worlds in Vanillite's own format store blocks by number, and the numbers can change between versions. Each world keeps the list of names for the version that wrote it, so a newer Vanillite maps old blocks to the new ones by name as chunks load. Blocks that no longer exist become air and are logged. vanillite upgrade-world rewrites the whole world at once (see First start).

Older clients

Clients from 1.20.5 to 26.2 join through a translation layer (similar to ViaVersion), one step per version. The tables for each step (packet IDs, blocks, registries, entity data) are extracted from that version's official server file in the same way, at build time, and turned into Rust tables. Things an older version does not have are shown as the closest thing it knows: a mob it lacks (a camel husk, a happy ghast, a copper golem and others) appears as a hand-picked stand-in (a camel, a ghast, an iron golem …), and new items such as spears, music discs and harnesses show as related items (a sword, a music disc, a saddle). Every supported version is covered by translation tests. How to allow or limit older versions: Connecting.

Next: Security by design.