This page is available as Markdown : https://docs.vyse.cloud/first-steps/your-first-block.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 block

Create a custom block, from texture to the block placed in-game.

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

You need a JAVA project and a CUSTOM_BLOCK folder. See Getting started.

Click the folder in the left sidebar. The workspace opens: 3D preview at top-left, preparation area (Staging area) on the right, atlas at bottom.

Click Add textures at the bottom and choose your PNGs. Vyse places them in the atlas. A texture already present (even with identical content) is reused.

Click Add block(s), choose the face layout, assign textures, then Save staged changes.

LayoutFaces to fill
UNITEDALL : one texture everywhere
COLUMNENDS (top, bottom), SIDES
FURNACEFRONT, BACK, SIDES, ENDS
LOOMFRONT, SIDES, TOP, BOTTOM
FLOORINGTOP, BOTTOM, SIDES
CROSSSIDES (leaves)
CUSTOMNORTH, SOUTH, EAST, WEST, UP, DOWN

Multiple texture sets on the same block make it an alternative block: Minecraft chooses one at random, based on its weight (weight).

Click Quick export, then on the server:

/vyse import latest
Bash
# 1. The texture (PNG in base64)
curl -X POST "https://api.vyse.cloud/api/v1/projects/<projectId>/textures" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"slug": "polished_stone", "objectType": "BLOCK_CUSTOM", "pngBase64": "iVBORw0KGgo..."}'

# 2. The block, with the texture id
curl -X POST "https://api.vyse.cloud/api/v1/projects/<projectId>/java/directories/<directoryId>/blocks" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"name": "Polished stone", "textureSets": [{"presetLayout": "UNITED", "textures": {"ALL": "<textureId>"}}]}'

With an AI assistant connected to the MCP server, just ask: "Create a Polished stone block with this texture in the Stones folder."

FieldValuesEffect
blockTypeREAL_NOTE (default), REAL, REAL_TRANSPARENT, REAL_WIREServer block used: musical block, chorus plant (transparent textures) or trigger wire
directionalPlacementNONE, ALL, FURNACE, LOG, DROPPEROrientation based on how the player places the block
wireVariantCount1 and moreREAL_WIRE only: reserved states
Your first block · First steps