> 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/api/functions/math.getcenter.md). Agents can also search and read this documentation through its [MCP server](https://scripting.breeze.rip/~gitbook/mcp).

# math.getCenter

> **getCenter**(`bb`): [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3.md)

The point in the middle of a bounding box.

### Parameters

#### bb

[`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb.md)

The bounding box to take the center of.

### Returns

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3.md)

The center of the box, or null when no box was given.
