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

# ClientboundAddEntityPacket

Spawns an entity on the client. The entity usually does not exist in the level yet when the packet is received.

### Extends

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

### Properties

#### data

> **data**: `number`

Extra entity specific data, e.g. the owner id of a projectile or the direction of a hanging entity.

***

#### entity

> `readonly` **entity**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The entity, or null when it is not loaded.

***

#### entityId

> `readonly` **entityId**: `number`

The network id the entity will get.

***

#### entityType

> `readonly` **entityType**: `string`

The entity type id.

**See**

[Entity ids](https://minecraft.wiki/w/Java_Edition_data_values/Entities)

***

#### 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)

***

#### movement

> **movement**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The initial velocity in blocks per tick.

***

#### 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)

***

#### 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)

***

#### uuid

> `readonly` **uuid**: `string`

The entity's UUID as a string.

***

#### x

> **x**: `number`

The X position.

***

#### xRot

> `readonly` **xRot**: `number`

The pitch in degrees, quantised to 1.4 degree steps by the protocol.

***

#### y

> **y**: `number`

The Y position.

***

#### yHeadRot

> `readonly` **yHeadRot**: `number`

The head yaw in degrees, quantised to 1.4 degree steps by the protocol.

***

#### yRot

> `readonly` **yRot**: `number`

The yaw in degrees, quantised to 1.4 degree steps by the protocol.

***

#### z

> **z**: `number`

The Z position.
