> 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/api/net/minecraft/network/server/s2cpacketspawnglobalentity.md).

# S2CPacketSpawnGlobalEntity

Represents a packet that is sent when a global entity (like lightning) is spawned

### Extends

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

### Methods

#### getEntityId()

> **getEntityId**(): `number`

Gets the ID of the spawned global entity

**Returns**

`number`

The entity ID

***

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#getpacketid)

***

#### getType()

> **getType**(): `number`

Gets the type ID of the global entity (1 = thunderbolt)

**Returns**

`number`

The global entity type ID

***

#### getX()

> **getX**(): `number`

Gets the X position of the global entity

**Returns**

`number`

The X coordinate

***

#### getY()

> **getY**(): `number`

Gets the Y position of the global entity

**Returns**

`number`

The Y coordinate

***

#### getZ()

> **getZ**(): `number`

Gets the Z position of the global entity

**Returns**

`number`

The Z coordinate
