This page is available as Markdown : https://docs.vyse.cloud/first-steps/your-first-furniture-item.md. Index of all the documentation for AI : https://docs.vyse.cloud/llms.txt (full version: https://docs.vyse.cloud/llms-full.txt).

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.
  • A FURNITURE type folder within a JAVA project.
  • A Blockbench model (.bbmodel) with its textures integrated.

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.
SettingAPI FieldValues
TypemodelTypeFURNITURE (default) or REAL_WIRE (exported as a wire block)
LightlightSource0 to 15
SeatseatsitPoint (height in blocks), frontView, bodyLock
Scalescale0 to 4
Hitboxhitbox3 × 3 × 3 grid, see Hitboxes

Click Save staged changes.

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}'
Your first furniture item · First steps