# Furniture 2D icon

{% hint style="warning" %}
This feature requires **ItemsAdder 3.1.6+**
{% endhint %}

{% embed url="<https://youtu.be/FOLoAAjV_oI>" %}

### Step 1

Create the 2D icon for the furniture

{% hint style="info" %}
Replace `myitems` with your own [namespace](/japanese/plugin-usage/beginners/configs-and-resourcepack.md#what-is-a-namespace).
{% endhint %}

```yaml
info:
  namespace: myitems
items:
  2d_furniture:
    display_name: 2d_furniture
    permission: 2d_furniture
    resource:
      material: PAPER
      generate: true
      textures:
      - item/2d_furniture
    events:
      interact:
        right:
          place_furniture:
            furniture: furniture
            decrement_amount: true
        right_shift:
          place_furniture:
            furniture: furniture
            decrement_amount: true
```

Now create the `2d_furniture.png` file inside the folder `contents\myitems\resourcepack\myitems\textures\item\`

### Step 2

Create the item which shows the placed furniture model. It is a different item form the one you see in the inventory (the one created in the **step 1**).

```yaml
info:
  namespace: myitems
items:
  furniture:
    display_name: furniture
    permission: furniture
    lore:
    - 'lore-decorative-item'
    resource:
      material: PAPER
      generate: false
      model_path: decoration/furniture
    behaviours:
      furniture:
        solid: true
        cancel_drop: true
        hitbox:
          length: 1
          width: 1
          height: 1
    events:
      placed_armorstand:
        break:
          drop_item:
            item: 2d_furniture
  2d_furniture:
    display_name: 2d_furniture
    permission: 2d_furniture
    resource:
      material: PAPER
      generate: true
      textures:
      - item/2d_furniture
    events:
      interact:
        right:
          place_furniture:
            furniture: furniture
            decrement_amount: true
        right_shift:
          place_furniture:
            furniture: furniture
            decrement_amount: true
```

Now create the `furniture.json` file inside the folder `dcontents\myitems\resourcepack\myitems\models\decoration\`

### Done!

Now try to right click with the `2d_furniture` item and you will see it places the `furniture` model.


---

# Agent Instructions: 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:

```
GET https://itemsadder.devs.beer/japanese/plugin-usage/adding-content/furniture/furniture-2d-icon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
