---
title: "game"
---

> Documentation Index
> Fetch the complete documentation index at: https://aesthetic-docs.pages.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# game

Static game data: registry lookups and translations. Live objects are
[`player` and `world`](/minecraft).

| Function | What it does |
|----------|--------------|
| `game.item(id)` | [Item handle](/item) for an item id's default stack |
| `game.translate(key, ...)` | Translates a key through the client language; `...` fills `%s` slots |
| `game.has_translation(key)` | Whether the client language knows the key |
| `game.language()` | Language code, e.g. `"en_us"` |

```lua
print(game.translate("block.minecraft.stone"))  -- "Stone" (or localized)
local apple = game.item("minecraft:golden_apple")
print(apple:name(), apple:food().nutrition)
```

Source: https://aesthetic-docs.pages.dev/game/index.md
