feat: clod can build from litematica schematics
This commit is contained in:
Binary file not shown.
@@ -315,11 +315,19 @@ async def save_schematic(name: str, x1: int, y1: int, z1: int, x2: int, y2: int,
|
||||
@mcp.tool()
|
||||
async def load_schematic(name: str, x: int, y: int, z: int) -> str:
|
||||
"""Load a previously saved schematic and place it at the given origin coordinates.
|
||||
Name may only contain letters, numbers, underscore, and hyphen."""
|
||||
Name may only contain letters, numbers, underscore, and hyphen.
|
||||
Supports both .litematic (Litematica) and .json formats — .litematic is checked first."""
|
||||
await _ensure_build_session(x, y, z)
|
||||
return _fmt(await _request("POST", "/load_schematic", json={
|
||||
"name": name, "x": x, "y": y, "z": z,
|
||||
}, timeout=30.0))
|
||||
}, timeout=120.0))
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
async def list_schematics() -> str:
|
||||
"""List all available schematics (.json and .litematic) in the world's schematics folder.
|
||||
Returns name, format, and file size for each schematic."""
|
||||
return _fmt(await _request("GET", "/list_schematics"))
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
|
||||
Reference in New Issue
Block a user