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

# ItemStack

Describes a minecraft item-stack.

### Properties

#### itemDamage

> `readonly` **itemDamage**: `number`

***

#### maxStackSize

> `readonly` **maxStackSize**: `number`

***

#### stackSize

> **stackSize**: `number`

The amount of items in the stack.

### Methods

#### exists()

> **exists**(): `boolean`

**Returns**

`boolean`

Whether the item exists (not null/empty).

***

#### getDisplayName()

> **getDisplayName**(): `string`

**Returns**

`string`

The name of the item.

***

#### getItemId()

> **getItemId**(): `number`

**Returns**

`number`

The id of the item.

***

#### getRemainingDurability()

> **getRemainingDurability**(): `number`

**Returns**

`number`

The remaining durability of the item.

***

#### getUnlocalizedName()

> **getUnlocalizedName**(): `string`

**Returns**

`string`

The unlocalized name of the item.

***

#### hasEnchantments()

> **hasEnchantments**(): `boolean`

**Returns**

`boolean`

Whether the item has enchantments.

***

#### isAxe()

> **isAxe**(): `boolean`

**Returns**

`boolean`

Whether the item is an axe.

***

#### isBlock()

> **isBlock**(): `boolean`

**Returns**

`boolean`

Whether the item is a block.

***

#### isBroken()

> **isBroken**(): `boolean`

**Returns**

`boolean`

Whether the item is broken.

***

#### isDamageable()

> **isDamageable**(): `boolean`

**Returns**

`boolean`

Whether the item can be damaged.

***

#### isHoe()

> **isHoe**(): `boolean`

**Returns**

`boolean`

Whether the item is a hoe.

***

#### isPickaxe()

> **isPickaxe**(): `boolean`

**Returns**

`boolean`

Whether the item is a pickaxe.

***

#### isShovel()

> **isShovel**(): `boolean`

**Returns**

`boolean`

Whether the item is a shovel.

***

#### isStackable()

> **isStackable**(): `boolean`

**Returns**

`boolean`

Whether the item can be stacked.

***

#### isSword()

> **isSword**(): `boolean`

**Returns**

`boolean`

Whether the item is a sword.

***

#### isTool()

> **isTool**(): `boolean`

**Returns**

`boolean`

Whether the item is a tool or weapon.

***

#### setNBTData()

> **setNBTData**(): `string`

Sets the NBT data of the item.

**Returns**

`string`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://scripting.breeze.rip/api/net/minecraft/item/itemstack.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
