---
title: "client"
---

> 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.

# client

Client runtime: timing, DPI scale, local sounds and the clipboard.

Related: [server](/server) · [chat](/chat) · [hud](/hud) · [input](/input) ·
[screen](/screen)

## Timing and scale

| Function | Returns |
|----------|---------|
| `client.fps()` | Current FPS |
| `client.millis()` | Wall-clock time in milliseconds |
| `client.tick_delta()` | Progress between ticks (0..1) — useful for smooth movement |
| `client.scale()` | DPI scale factor (relative to a 1920px base) |

## Sounds and clipboard

| Function | What it does |
|----------|--------------|
| `client.play_sound(id, volume?, pitch?)` | Plays a sound locally, e.g. `"minecraft:ui.button.click"` |
| `client.clipboard()` | System clipboard contents |
| `client.set_clipboard(s)` | Replaces the system clipboard |

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