> 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/world.md).

# world

This page will go over the World API namespace.

### `getDimensionName(): String`

Returns the dimension name.

### `getDimensionId(): Number`

Returns the dimension ID.

### `getDimensionTime(): Number`

Returns the dimension time.

### `getTargetEntity(range): EntityLiving`

| Argument | Type     | Description                                         |
| -------- | -------- | --------------------------------------------------- |
| range    | `Number` | The maximum amount of range to get the entity from. |

Returns the closest targetable entity in a certain range.

### `getEntities(): Entity[]`

Returns all of the loaded/visible entities.

### `removeEntity(entityID): Undefined`

Removes entity from the world.

### `removeEntity(entity): Undefined`

Removes entity from the world.

### `newBlockPos(x,y,z): BlockPos`

Creates a new block pos.

### `getBlockName(blockpos): String`

Returns the block name.
