# Legacy Minecraft versions

The `version` option of [`prepareAssets`](assets.md#minecraft-version) tells the renderer what Minecraft version the assets are for, so it can apply era-appropriate behavior automatically. Older versions had quirks that modern ones don't, and this lets the renderer handle them transparently.

```js
const assets = await prepareAssets(sources, { version: "1.8.9" })

await renderBlock({
  id: "cactus",
  assets,
  path: "cactus.png"
})
```

## Version strings

`version` is a release version number in the `X.Y.Z` format: `"1.8"`, `"1.16.5"`, `"26.1.2"`. Trailing parts are optional and count as `0`, so `"26"` compares as `"26.0.0"`.

A snapshot is not a version. To render a snapshot's assets, round it to the release before or after it and pass that: `"1.20.5"` for `24w14a`.

Anything that doesn't start with a release number, like `"24w14a"` or `"b1.7.3"`, counts as no version, so it renders [unversioned](#without-a-version). Anything after the number is ignored, so `"1.21-pre1"` reads as `"1.21"`.

## Triggered behaviors

Each threshold below only kicks in when the assets' `version` falls in its range. Assets prepared without a `version` use the modern behavior (with the coexistence rules [below](#without-a-version)).

| Assets from | What changes | Why |
|---|---|---|
| **before 1.9** | `display.gui` transforms compose *onto* the era's built-in gui base (rotation `[30, 225, 0]`, scale `0.625`) instead of replacing it, and the legacy `thirdperson` / `firstperson` display names map to their modern `_righthand` forms | The old pipeline layered gui transforms and used the pre-`_righthand` context names |
| **before 1.13** | Bare blockstate model refs gain a `block/` prefix (`"model": "cactus"` → `block/cactus`); the bundled [additional](assets.md#additional-rendered-alongside) block entity overlays render and list without a blockstate in your packs; the ids `bed`, `standing_sign`, `wall_sign`, `standing_banner`, `wall_banner` and `skull` render as the red bed, the sign, the white banner and the skeleton skull | Matches the implicit folder the game assumed before the 1.13 flattening; chests, banners, skulls and beds had no blockstates before it |
| **before 1.15** | Mirrored display scales (an odd number of negative components) render solid rather than inside out | The old pipeline compensated the mirror; 1.15 stopped (MC-176864), which is what unversioned renders match |
| **before 1.21.2** | The element `light_emission` field is ignored | It didn't exist yet |
| **before 1.21.4** | Items with no [item definition](scenes.md#parseitemdefinitionassets-id-args) fall back to `models/item/<id>.json` | Item definitions didn't exist yet; models lived directly under `models/item` |
| **before 1.21.6** | Element rotation angles that aren't multiples of 22.5° render as the missing model | The game rejected off-grid rotations before 1.21.6 |
| **before 1.21.11** | Texture atlas membership rules are skipped; element rotations outside ±45° or using the multi-axis `x`/`y`/`z` form render as missing; blockstate variant `z` rotations are ignored | The block/item atlas restriction and the wider rotation form both arrived in 1.21.11, and the game didn't read variant `z` before it |
| **before 26.2** | Beds and signs render through bundled override models (the versioned `additional_26.1` pack activates) | They used entity models until 26.2 changed them to block models |
| **before 26.3** | The element `shade_direction_override` field is ignored; `paletted_permutations` palette references read from their literal texture locations (`textures/trims/color_palettes/…`) | Neither the field nor the 26.3 palette folder existed yet |
| **26.3 and later** | The element `shade` field is ignored; `paletted_permutations` palette references resolve as palette IDs under `textures/palettes/` | 26.3 removed `shade` in favor of `shade_direction_override`, and moved trim palettes |

## Without a `version`

Everything that can coexist works at once: when the format replaces one field with another, both the old and new forms are supported simultaneously, and the newer form wins if a model carries both. Only behaviors that directly conflict fall back to the modern rules. So an unversioned render still falls back to `models/item/<id>.json`, still converts the old display names, and resolves renamed item definition properties (`holder_type`, `shift_down`) as their current names; setting a `version` turns those into strict era rules instead (a 1.21.4+ game never reads `models/item`, a 1.9+ game ignores the old display names).

The assets' version is propagated onto model objects as `model.version`, and a model that already carries its own [`version`](extending.md#model-json) keeps it, so manually constructed models can be versioned individually.
