[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / world/lootLevel

# world/lootLevel

## Interfaces

### LootLevelWorld

Defined in: [packages/prismarine/src/world/lootLevel.ts:27](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L27)

The little of a world [lootLevelOf](#lootlevelof) reads, so a test satisfies it without building one.

#### Methods

##### createMap()?

> `optional` **createMap**(`map`): `number`

Defined in: [packages/prismarine/src/world/lootLevel.ts:40](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L40)

Makes a map and answers its id; see `World.createMap`.

###### Parameters

###### map

[`NewMap`](https://jsprismarine.dev/api/@jsprismarine/predicates/index.md#newmap)

###### Returns

`number`

##### getDimension()

> **getDimension**(): `object`

Defined in: [packages/prismarine/src/world/lootLevel.ts:31](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L31)

The dimension this world is, by the identifier a `location_check` compares.

###### Returns

`object`

###### name

> `readonly` **name**: `string`

##### getTicks()

> **getTicks**(): `number`

Defined in: [packages/prismarine/src/world/lootLevel.ts:29](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L29)

Ticks since the world started, which is the clock a `time_check` period is applied to.

###### Returns

`number`

##### locateStructure()?

> `optional` **locateStructure**(`name`, `origin`, `radius`, `options`): [`Vec3`](https://jsprismarine.dev/api/@jsprismarine/predicates/index.md#vec3) \| `undefined`

Defined in: [packages/prismarine/src/world/lootLevel.ts:33](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L33)

The search `/locate structure` runs; see `World.locateStructure`.

###### Parameters

###### name

`string`

###### origin

###### x

`number`

###### y?

`number`

###### z

`number`

###### radius

`number`

###### options

###### skipKnownStructures

`boolean`

###### Returns

[`Vec3`](https://jsprismarine.dev/api/@jsprismarine/predicates/index.md#vec3) \| `undefined`

## Functions

### lootLevelOf()

> **lootLevelOf**(`world`): [`LevelView`](https://jsprismarine.dev/api/@jsprismarine/predicates/index.md#levelview)

Defined in: [packages/prismarine/src/world/lootLevel.ts:50](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/lootLevel.ts#L50)

The level view for one world.

#### Parameters

##### world

[`LootLevelWorld`](#lootlevelworld)

The world the roll happens in.

#### Returns

[`LevelView`](https://jsprismarine.dev/api/@jsprismarine/predicates/index.md#levelview)

The view, reading through to the world on every call rather than
  snapshotting it, because a roll may happen ticks after the view is made.
