# Your first furniture item

Transform a Blockbench model into a placeable in-game furnishing: a chair, a table, a lamp.

> **Video coming soon:** a demonstration video for this step is on its way. In the meantime, follow the steps below.

## Before you begin

- A `FURNITURE` type folder within a **JAVA** project.
- A Blockbench model (`.bbmodel`) with its textures integrated.

## 1. Open the folder

## 2. Import the model

Click **Add furniture(s)** and select the `.bbmodel`. Vyse extracts the textures into your project explorer and verifies the model.

> **Note:** a rejected model is returned with a reason, for example "BBModel folder depth is too large for furniture". Correct the model in Blockbench and re-import it.

## 3. Configure the furnishing

| Setting | API Field | Values |
|---|---|---|
| Type | `modelType` | `FURNITURE` (default) or `REAL_WIRE` (exported as a wire block) |
| Light | `lightSource` | 0 to 15 |
| Seat | `seat` | `sitPoint` (height in blocks), `frontView`, `bodyLock` |
| Scale | `scale` | 0 to 4 |
| Hitbox | `hitbox` | 3 × 3 × 3 grid, see [Hitboxes](/first-steps/hitbox-java-and-bedrock) |

Click **Save staged changes**.

## The same thing with the API

```bash
curl -X POST "https://api.vyse.cloud/api/v1/projects/<projectId>/java/directories/<directoryId>/furniture" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d @- <<'JSON'
{
  "name": "Oak chair",
  "bbModel": "<content of the .bbmodel file, as JSON string>",
  "lightSource": 4,
  "seat": {"sitPoint": 0.5, "frontView": true, "bodyLock": false},
  "hitbox": [
    [[0,0,0],[0,0,0],[0,0,0]],
    [[0,0,0],[0,1,0],[0,0,0]],
    [[0,0,0],[0,1,0],[0,0,0]]
  ]
}
JSON
```

The response contains the furnishing, its extracted textures, and the calculated box from the hitbox:

```json
{
  "id": "10c8bf86-...",
  "platform": "java",
  "modelType": "FURNITURE",
  "textures": ["..."],
  "hitbox": {
    "grid": [[[0,0,0],[0,0,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]], [[0,0,0],[0,1,0],[0,0,0]]],
    "cuboid": {"length": 1, "width": 1, "height": 2, "lengthOffset": 0.0, "widthOffset": 0.0, "heightOffset": 0.0}
  },
  "lightSource": 4
}
```

To modify later, send only what changes. `null` removes a setting:

```bash
curl -X PATCH "https://api.vyse.cloud/api/v1/projects/<projectId>/java/furniture/<furnitureId>" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"lightSource": null, "scale": 1.5}'
```

## Next steps

- [Hitboxes, Java and Bedrock](/first-steps/hitbox-java-and-bedrock)
- [Java and Bedrock](/reference/java-and-bedrock)
