> For the complete documentation index, see [llms.txt](https://riseclients-organization.gitbook.io/rise-6-scripting-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riseclients-organization.gitbook.io/rise-6-scripting-api/api-documentation/global-namespaces/mc.md).

# mc

This page will go over the Minecraft API namespace.

### `getDisplayWidth(): Number`

Returns `mc.displayWidth`.

### `getDisplayHeight(): Number`

&#x20;Returns `mc.displayHeight`.

### `getTimerSpeed(): Number`

Returns `mc.timer.timerSpeed`.

### `setTimerSpeed(timerSpeed): Undefined`

<table><thead><tr><th width="173">Argument</th><th width="111">Type</th><th width="465">Description</th></tr></thead><tbody><tr><td><code>timerSpeed</code></td><td><code>Number</code></td><td>The timer speed. Default value is 1.</td></tr></tbody></table>

Does not return anything, sets the `timerSpeed` value of `mc.timer` to timerSpeed **parameter**.

### `getPartialTicks(): Number`

Returns `mc.timer.elapsedPartialTicks`.

### `getRenderPartialTicks(): Number`

Returns `mc.timer.renderPartialTicks`.

### `getFPS(): Number`

Returns fps.
