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

# ServerboundSetCreativeModeSlotPacket

Puts an item into a slot in creative mode.

### Extends

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

### Constructors

#### Constructor

> **new ServerboundSetCreativeModeSlotPacket**(`slot`, `item`): `ServerboundSetCreativeModeSlotPacket`

A creative slot set.

**Parameters**

**slot**

`number`

The slot.

**item**

[`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item.

**Returns**

`ServerboundSetCreativeModeSlotPacket`

**Overrides**

`Packet.constructor`

### Properties

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

***

#### item

> `readonly` **item**: [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item put there.

***

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

***

#### slot

> `readonly` **slot**: `number`

The slot index.
