> For the complete documentation index, see [llms.txt](https://opuszek.gitbook.io/itemblocker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://opuszek.gitbook.io/itemblocker/rules/items.md).

# Item rules

An item rule blocks [actions](/itemblocker/rules/actions.md) for one item type, optionally only in some worlds.

## Block

```
/ib block <item|hand> [actions:...] [worlds:...] [bypass:...] [in:preset]
```

| Option     | Default      | Example                                                                 |
| ---------- | ------------ | ----------------------------------------------------------------------- |
| `actions:` | every action | `actions:place,use` or `actions:obtain`                                 |
| `worlds:`  | every world  | `worlds:world_nether,world_the_end`                                     |
| `bypass:`  | none         | `bypass:vip.elytra`, see [Exceptions](/itemblocker/rules/exceptions.md) |
| `in:`      | `default`    | `in:pvp`                                                                |

`hand` means the item in your main hand. Item names are the Minecraft keys, such as `diamond_sword` or `minecraft:diamond_sword`, and tab completion suggests them.

`block` adds to an existing rule: blocking `place` and then `use` blocks both.

## Change

```
/ib edit <item|hand> [actions:...] [worlds:...] [bypass:...] [in:preset]
```

`edit` replaces only the parts you give:

```
/ib edit tnt actions:crafting       # now only crafting is blocked
/ib edit tnt worlds:all             # in every world again
/ib edit elytra bypass:none         # no exception any more
```

## Remove

```
/ib unblock <item|hand> [in:preset]
```

## See

```
/ib show <item|hand>
/ib list items [in:preset]
```

`/ib show hand` also lists the [filters](/itemblocker/rules/filters.md) that match the item you hold.

## In the menu

Open a preset, then **Items**. Click an item in your own inventory, or search every item with the button at the bottom, to open its editor. The editor has a button for every action (red is blocked, green is allowed), the worlds, the bypass permission and the item's [limits](/itemblocker/rules/limits.md).

## Items from other plugins

An item rule covers every item of its type, including custom items from other plugins that are built on that type. To block one specific custom item, use a [filter](/itemblocker/rules/filters.md).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://opuszek.gitbook.io/itemblocker/rules/items.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
