> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/version_compatibility.md).

# Version Compatibility

One API covers every Minecraft version Breeze supports, and scripts are **forward compatible**: Minecraft rarely removes anything, so a script that works on one version keeps working on every later one.

#### "Since" tags

Anything added in a later Minecraft version is marked in the API reference:

> **Since 26.2.**

That object, function, event or enum value exists on 26.2 and every version after it. Everything without a tag works on every supported version.

In the rare case Minecraft removes something, the reference lists exactly where it exists instead:

> **Only available on 26.1, 26.2.**

#### A script's minimum version

A script needs the newest "Since" of everything it uses. If it only uses untagged API, it runs on every supported version.

#### Checking the version in a script

```js
script.log("Running on " + mc.version);
```

#### Items, blocks and entities

Items, blocks and entities are referred to by their id, like `"minecraft:mace"`. New ones need no new API: on a version that has the item, the id simply matches.

```js
if (mc.player.inventory.selectedItem.id === "minecraft:mace") {
    // ...
}
```
