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).
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
FURNITUREtype 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.
| 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 |
Click Save staged changes.
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]]
]
}
JSONThe response contains the furnishing, its extracted textures, and the calculated box from the hitbox:
{
"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:
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}'