> 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/newgen/api/net/minecraft/network/protocol/game/clientboundloginpacket.md).

# ClientboundLoginPacket

Sent when joining a world: the local player's id, world settings and spawn information.

### Extends

* [`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md)

### Properties

#### chunkRadius

> `readonly` **chunkRadius**: `number`

The server's view distance in chunks.

***

#### dimension

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

The id of the joined dimension, e.g. "minecraft:overworld".

***

#### dimensionType

> `readonly` **dimensionType**: `string`

The dimension type id of the joined world.

**See**

[Dimension ids](https://minecraft.wiki/w/Java_Edition_data_values#Dimensions)

***

#### doLimitedCrafting

> `readonly` **doLimitedCrafting**: `boolean`

True when only unlocked recipes can be crafted.

***

#### enforcesSecureChat

> `readonly` **enforcesSecureChat**: `boolean`

True when the server requires signed chat.

***

#### gameType

> `readonly` **gameType**: [`GameType`](/newgen/api/enum_types/gametype.md)

The player's game mode.

***

#### hardcore

> `readonly` **hardcore**: `boolean`

True for hardcore worlds.

***

#### id

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

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### isDebug

> `readonly` **isDebug**: `boolean`

True for debug worlds.

***

#### isFlat

> `readonly` **isFlat**: `boolean`

True for superflat worlds.

***

#### levels

> `readonly` **levels**: `string`\[]

The ids of the dimensions on the server.

***

#### maxPlayers

> `readonly` **maxPlayers**: `number`

The player limit.

***

#### name

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

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### onlineMode

> `readonly` **onlineMode**: `boolean`

True when the server runs in online mode. Only sent by 26.2 and newer; false on older versions.

***

#### playerId

> `readonly` **playerId**: `number`

The local player's entity id.

***

#### portalCooldown

> `readonly` **portalCooldown**: `number`

The portal cooldown in ticks.

***

#### previousGameType

> `readonly` **previousGameType**: [`GameType`](/newgen/api/enum_types/gametype.md)

The player's previous game mode, or null.

***

#### reducedDebugInfo

> `readonly` **reducedDebugInfo**: `boolean`

True when the debug screen hides coordinates.

***

#### seaLevel

> `readonly` **seaLevel**: `number`

The sea level.

***

#### seed

> `readonly` **seed**: `number`

The hashed world seed.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### showDeathScreen

> `readonly` **showDeathScreen**: `boolean`

True when the death screen is shown.

***

#### simulationDistance

> `readonly` **simulationDistance**: `number`

The server's simulation distance in chunks.
