[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/script-host](https://jsprismarine.dev/api/@jsprismarine/script-host/index.md) / host/worldsystem/seam

# host/worldsystem/seam

## Interfaces

### ScriptBiome

Defined in: [script-host/src/host/worldsystem/seam.ts:42](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L42)

A biome as `BiomeType` reads it.

#### Properties

##### id

> `readonly` **id**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:43](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L43)

##### tags

> `readonly` **tags**: readonly `string`[]

Defined in: [script-host/src/host/worldsystem/seam.ts:44](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L44)

***

### ScriptChunkArea

Defined in: [script-host/src/host/worldsystem/seam.ts:58](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L58)

A rectangle of chunks, inclusive, by chunk coordinates.

#### Properties

##### maxX

> `readonly` **maxX**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:60](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L60)

##### maxZ

> `readonly` **maxZ**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:62](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L62)

##### minX

> `readonly` **minX**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:59](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L59)

##### minZ

> `readonly` **minZ**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:61](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L61)

***

### ScriptExplosion

Defined in: [script-host/src/host/worldsystem/seam.ts:48](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L48)

An explosion a script sets off, as `ExplosionOptions` describes it.

#### Properties

##### allowUnderwater

> `readonly` **allowUnderwater**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:52](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L52)

##### breaksBlocks

> `readonly` **breaksBlocks**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:50](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L50)

##### causesFire

> `readonly` **causesFire**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:51](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L51)

##### radius

> `readonly` **radius**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:49](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L49)

##### source?

> `readonly` `optional` **source?**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:54](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L54)

The entity answerable for it.

***

### ScriptFogLayer

Defined in: [script-host/src/host/worldsystem/seam.ts:83](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L83)

One layer of a player's fog stack: a fog definition's id and the tag a script gave it.

#### Properties

##### fogId

> `readonly` **fogId**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:84](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L84)

##### tag

> `readonly` **tag**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:85](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L85)

***

### ScriptLight

Defined in: [script-host/src/host/worldsystem/seam.ts:34](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L34)

The light at a block, as `getLightLevel` and `getSkyLightLevel` read it, 0 to 15.

#### Properties

##### level

> `readonly` **level**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:36](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L36)

The brightest of the block light and the sky light there; 0 inside an opaque block.

##### sky

> `readonly` **sky**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:38](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L38)

The sky light there, read as if the block let it through, as BDS reads it.

***

### ScriptLootPlace

Defined in: [script-host/src/host/worldsystem/seam.ts:89](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L89)

Where loot is rolled, for the conditions and functions that read the place.

#### Properties

##### dimension

> `readonly` **dimension**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:90](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L90)

##### location

> `readonly` **location**: [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

Defined in: [script-host/src/host/worldsystem/seam.ts:91](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L91)

***

### ScriptMusic

Defined in: [script-host/src/host/worldsystem/seam.ts:17](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L17)

A track `world.playMusic` or `queueMusic` starts for every player.

#### Properties

##### fade

> `readonly` **fade**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:21](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L21)

Seconds the track fades in over.

##### loop

> `readonly` **loop**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:22](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L22)

##### queue

> `readonly` **queue**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:24](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L24)

Whether it waits for the playing track to end, as `queueMusic` does.

##### track

> `readonly` **track**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:18](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L18)

##### volume

> `readonly` **volume**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:19](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L19)

***

### ScriptTickingArea

Defined in: [script-host/src/host/worldsystem/seam.ts:66](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L66)

One of the scripts' ticking areas, as the world keeps it.

#### Properties

##### chunks

> `readonly` **chunks**: [`ScriptChunkArea`](#scriptchunkarea)

Defined in: [script-host/src/host/worldsystem/seam.ts:69](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L69)

##### dimension

> `readonly` **dimension**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:68](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L68)

##### identifier

> `readonly` **identifier**: `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:67](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L67)

##### loaded

> `readonly` **loaded**: `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:71](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L71)

Whether every chunk it covers is loaded.

***

### ScriptTimeMarker

Defined in: [script-host/src/host/worldsystem/seam.ts:75](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L75)

A time marker a script added to the overworld's clock.

#### Properties

##### name

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

Defined in: [script-host/src/host/worldsystem/seam.ts:76](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L76)

##### period?

> `readonly` `optional` **period?**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:79](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L79)

Ticks between two of its times; absent for a marker that comes once.

##### time

> `readonly` **time**: `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:77](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L77)

***

### ScriptWorldSystem

Defined in: [script-host/src/host/worldsystem/seam.ts:95](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L95)

The world and system state the world and system members of a world's scripts reach.

#### Methods

##### absoluteTime()

> **absoluteTime**(): `number`

Defined in: [script-host/src/host/worldsystem/seam.ts:97](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L97)

The world's time in ticks since it began, which `/time set` writes and every dimension shares.

###### Returns

`number`

##### addTickingArea()

> **addTickingArea**(`identifier`, `dimension`, `chunks`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:147](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L147)

Adds a ticking area over the chunks a block box covers, which starts them loading.

###### Parameters

###### identifier

`string`

###### dimension

`string`

###### chunks

[`ScriptChunkArea`](#scriptchunkarea)

###### Returns

`void`

##### addTimeMarker()

> **addTimeMarker**(`marker`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:167](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L167)

###### Parameters

###### marker

[`ScriptTimeMarker`](#scripttimemarker)

###### Returns

`void`

##### allowCheats()

> **allowCheats**(): `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:109](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L109)

###### Returns

`boolean`

##### biome()

> **biome**(`dimension`, `location`): `string` \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:122](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L122)

The biome at a location, or undefined when its chunk is not loaded.

###### Parameters

###### dimension

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

`string` \| `undefined`

##### biomes()

> **biomes**(): readonly [`ScriptBiome`](#scriptbiome)[]

Defined in: [script-host/src/host/worldsystem/seam.ts:124](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L124)

Every biome the world knows, with its tags.

###### Returns

readonly [`ScriptBiome`](#scriptbiome)[]

##### blockKind()

> **blockKind**(`typeId`): [`ScriptBlockKind`](#scriptblockkind)

Defined in: [script-host/src/host/worldsystem/seam.ts:118](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L118)

What a block is to a search or a ray, by its type.

###### Parameters

###### typeId

`string`

###### Returns

[`ScriptBlockKind`](#scriptblockkind)

##### blockTags()

> **blockTags**(`typeId`): readonly `string`[]

Defined in: [script-host/src/host/worldsystem/seam.ts:174](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L174)

A block type's Bedrock tags, as a block filter's tags match them.

###### Parameters

###### typeId

`string`

###### Returns

readonly `string`[]

##### clockPaused()

> **clockPaused**(): `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:163](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L163)

Whether a script paused the overworld's clock.

###### Returns

`boolean`

##### defaultSpawn()

> **defaultSpawn**(): [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

Defined in: [script-host/src/host/worldsystem/seam.ts:102](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L102)

The world's spawn, in whole blocks.

###### Returns

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

##### difficulty()

> **difficulty**(): [`ScriptDifficulty`](#scriptdifficulty)

Defined in: [script-host/src/host/worldsystem/seam.ts:99](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L99)

###### Returns

[`ScriptDifficulty`](#scriptdifficulty)

##### entityBox()

> **entityBox**(`id`): \{ `max`: [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3); `min`: [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3); \} \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:131](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L131)

An entity's collision box, or undefined for one that is gone.

###### Parameters

###### id

`string`

###### Returns

\{ `max`: [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3); `min`: [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3); \} \| `undefined`

##### explode()

> **explode**(`dimension`, `location`, `explosion`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:136](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L136)

###### Parameters

###### dimension

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### explosion

[`ScriptExplosion`](#scriptexplosion)

###### Returns

`void`

##### findBiome()

> **findBiome**(`dimension`, `biome`, `from`): [`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3) \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:129](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L129)

The nearest location of a biome the world's generator would place, from its seed, or
undefined when it places none within reach.

###### Parameters

###### dimension

`string`

###### biome

`string`

###### from

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3) \| `undefined`

##### fogStack()

> **fogStack**(`player`): readonly [`ScriptFogLayer`](#scriptfoglayer)[] \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:170](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L170)

A player's fog stack, bottom first, or undefined for a player who is gone.

###### Parameters

###### player

`string`

###### Returns

readonly [`ScriptFogLayer`](#scriptfoglayer)[] \| `undefined`

##### gameRule()

> **gameRule**(`name`): [`ScriptGameRuleValue`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/worldsystem/gameRules/index.md#scriptgamerulevalue)

Defined in: [script-host/src/host/worldsystem/seam.ts:104](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L104)

###### Parameters

###### name

`"commandBlockOutput"` \| `"commandBlocksEnabled"` \| `"doDayLightCycle"` \| `"doEntityDrops"` \| `"doFireTick"` \| `"doImmediateRespawn"` \| `"doInsomnia"` \| `"doLimitedCrafting"` \| `"doMobLoot"` \| `"doMobSpawning"` \| `"doTileDrops"` \| `"doWeatherCycle"` \| `"drowningDamage"` \| `"fallDamage"` \| `"fireDamage"` \| `"freezeDamage"` \| `"functionCommandLimit"` \| `"keepInventory"` \| `"maxCommandChainLength"` \| `"mobGriefing"` \| `"naturalRegeneration"` \| `"playerWaypoints"` \| `"playersSleepingPercentage"` \| `"projectilesCanBreakBlocks"` \| `"pvp"` \| `"randomTickSpeed"` \| `"recipesUnlock"` \| `"respawnBlocksExplode"` \| `"sendCommandFeedback"` \| `"showBorderEffect"` \| `"showCoordinates"` \| `"showDaysPlayed"` \| `"showDeathMessages"` \| `"showRecipeMessages"` \| `"showTags"` \| `"spawnRadius"` \| `"tntExplodes"` \| `"tntExplosionDropDecay"`

###### Returns

[`ScriptGameRuleValue`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/worldsystem/gameRules/index.md#scriptgamerulevalue)

##### generatedStructures()

> **generatedStructures**(`dimension`, `location`): readonly `string`[]

Defined in: [script-host/src/host/worldsystem/seam.ts:143](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L143)

The structures generation laid out over a location, by their feature type, such as `minecraft:village`.

###### Parameters

###### dimension

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

readonly `string`[]

##### isHardcore()

> **isHardcore**(): `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:106](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L106)

###### Returns

`boolean`

##### light()

> **light**(`dimension`, `location`): [`ScriptLight`](#scriptlight) \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:120](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L120)

The light at a block, or undefined when its chunk is not loaded.

###### Parameters

###### dimension

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

[`ScriptLight`](#scriptlight) \| `undefined`

##### lootTable()

> **lootTable**(`path`): `unknown`

Defined in: [script-host/src/host/worldsystem/seam.ts:151](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L151)

A behavior pack loot table's JSON, by its path such as `loot_tables/entities/pig.json`.

###### Parameters

###### path

`string`

###### Returns

`unknown`

##### placeFeature()

> **placeFeature**(`dimension`, `name`, `location`, `rule`): `boolean` \| `"unknown"`

Defined in: [script-host/src/host/worldsystem/seam.ts:141](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L141)

Places a feature, or a feature rule's feature, at a location.

###### Parameters

###### dimension

`string`

###### name

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### rule

`boolean`

###### Returns

`boolean` \| `"unknown"`

Whether it placed, or `unknown` for a name the world's packs do not define.

##### playMusic()

> **playMusic**(`music`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:111](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L111)

###### Parameters

###### music

[`ScriptMusic`](#scriptmusic)

###### Returns

`void`

##### removeTickingArea()

> **removeTickingArea**(`identifier`): `boolean`

Defined in: [script-host/src/host/worldsystem/seam.ts:149](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L149)

Removes a ticking area, and returns whether there was one.

###### Parameters

###### identifier

`string`

###### Returns

`boolean`

##### removeTimeMarker()

> **removeTimeMarker**(`name`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:168](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L168)

###### Parameters

###### name

`string`

###### Returns

`void`

##### rollBlockLoot()

> **rollBlockLoot**(`permutation`, `tool?`, `place?`): readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:155](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L155)

What a block drops when broken with a tool, or undefined when the tool cannot harvest it.

###### Parameters

###### permutation

[`ScriptBlockPermutation`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptblockpermutation)

###### tool?

[`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)

###### place?

[`ScriptLootPlace`](#scriptlootplace)

###### Returns

readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

##### rollEntityLoot()

> **rollEntityLoot**(`typeId`, `tool?`, `place?`): readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:161](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L161)

What an entity of a type drops when it dies.

###### Parameters

###### typeId

`string`

###### tool?

[`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)

###### place?

[`ScriptLootPlace`](#scriptlootplace)

###### Returns

readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

##### rollLootTable()

> **rollLootTable**(`path`, `tool?`): readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:153](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L153)

Rolls a loot table by its path, or undefined for one the packs do not have.

###### Parameters

###### path

`string`

###### tool?

[`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)

###### Returns

readonly [`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)[] \| `undefined`

##### seed()

> **seed**(): `string`

Defined in: [script-host/src/host/worldsystem/seam.ts:108](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L108)

The world's seed, as decimal digits.

###### Returns

`string`

##### setAbsoluteTime()

> **setAbsoluteTime**(`time`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:98](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L98)

###### Parameters

###### time

`number`

###### Returns

`void`

##### setAllowCheats()

> **setAllowCheats**(`allow`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:110](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L110)

###### Parameters

###### allow

`boolean`

###### Returns

`void`

##### setClockPaused()

> **setClockPaused**(`paused`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:164](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L164)

###### Parameters

###### paused

`boolean`

###### Returns

`void`

##### setDefaultSpawn()

> **setDefaultSpawn**(`location`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:103](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L103)

###### Parameters

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

`void`

##### setDifficulty()

> **setDifficulty**(`difficulty`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:100](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L100)

###### Parameters

###### difficulty

[`ScriptDifficulty`](#scriptdifficulty)

###### Returns

`void`

##### setFogStack()

> **setFogStack**(`player`, `layers`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:172](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L172)

Replaces a player's fog stack, which the player's client then draws.

###### Parameters

###### player

`string`

###### layers

readonly [`ScriptFogLayer`](#scriptfoglayer)[]

###### Returns

`void`

##### setGameRule()

> **setGameRule**(`name`, `value`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:105](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L105)

###### Parameters

###### name

`"commandBlockOutput"` \| `"commandBlocksEnabled"` \| `"doDayLightCycle"` \| `"doEntityDrops"` \| `"doFireTick"` \| `"doImmediateRespawn"` \| `"doInsomnia"` \| `"doLimitedCrafting"` \| `"doMobLoot"` \| `"doMobSpawning"` \| `"doTileDrops"` \| `"doWeatherCycle"` \| `"drowningDamage"` \| `"fallDamage"` \| `"fireDamage"` \| `"freezeDamage"` \| `"functionCommandLimit"` \| `"keepInventory"` \| `"maxCommandChainLength"` \| `"mobGriefing"` \| `"naturalRegeneration"` \| `"playerWaypoints"` \| `"playersSleepingPercentage"` \| `"projectilesCanBreakBlocks"` \| `"pvp"` \| `"randomTickSpeed"` \| `"recipesUnlock"` \| `"respawnBlocksExplode"` \| `"sendCommandFeedback"` \| `"showBorderEffect"` \| `"showCoordinates"` \| `"showDaysPlayed"` \| `"showDeathMessages"` \| `"showRecipeMessages"` \| `"showTags"` \| `"spawnRadius"` \| `"tntExplodes"` \| `"tntExplosionDropDecay"`

###### value

[`ScriptGameRuleValue`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/worldsystem/gameRules/index.md#scriptgamerulevalue)

###### Returns

`void`

##### spawnItem()

> **spawnItem**(`dimension`, `item`, `location`): `string` \| `undefined`

Defined in: [script-host/src/host/worldsystem/seam.ts:133](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L133)

Drops a stack as an item entity that lies still, and returns its id, or undefined when none was made.

###### Parameters

###### dimension

`string`

###### item

[`ScriptItem`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptitem)

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### Returns

`string` \| `undefined`

##### spawnXp()

> **spawnXp**(`dimension`, `location`, `amount`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:135](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L135)

Drops experience orbs worth `amount` points.

###### Parameters

###### dimension

`string`

###### location

[`ScriptVector3`](https://jsprismarine.dev/api/@jsprismarine/script-host/host/world/index.md#scriptvector3)

###### amount

`number`

###### Returns

`void`

##### stopMusic()

> **stopMusic**(): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:112](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L112)

###### Returns

`void`

##### stopSound()

> **stopSound**(`dimension`, `sound?`): `void`

Defined in: [script-host/src/host/worldsystem/seam.ts:116](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L116)

Stops a sound for every player in a dimension, or every sound when `sound` is undefined.

###### Parameters

###### dimension

`string`

###### sound?

`string`

###### Returns

`void`

##### tickingAreas()

> **tickingAreas**(): readonly [`ScriptTickingArea`](#scripttickingarea)[]

Defined in: [script-host/src/host/worldsystem/seam.ts:145](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L145)

The scripts' ticking areas, in the order they were added; the command's are not among them.

###### Returns

readonly [`ScriptTickingArea`](#scripttickingarea)[]

##### timeMarkers()

> **timeMarkers**(): readonly [`ScriptTimeMarker`](#scripttimemarker)[]

Defined in: [script-host/src/host/worldsystem/seam.ts:166](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L166)

The time markers scripts added to the overworld's clock, in the order they were added.

###### Returns

readonly [`ScriptTimeMarker`](#scripttimemarker)[]

## Type Aliases

### ScriptBlockKind

> **ScriptBlockKind** = `"air"` \| `"liquid"` \| `"passable"` \| `"solid"`

Defined in: [script-host/src/host/worldsystem/seam.ts:31](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L31)

What a block is to a search or a ray: nothing, a liquid, a block an entity walks through, such
as short grass, or a block an entity stands on. Water and lava count as passable as well.

***

### ScriptDifficulty

> **ScriptDifficulty** = `"Easy"` \| `"Hard"` \| `"Normal"` \| `"Peaceful"`

Defined in: [script-host/src/host/worldsystem/seam.ts:14](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/host/worldsystem/seam.ts#L14)

A world's difficulty, as `Difficulty` names it.
