Skip to main content
Glama
zeeweebee

Minecraft MCP Server

by zeeweebee

move-to-position

Command a Minecraft bot to navigate to precise coordinates (x, y, z) within the game world, with adjustable proximity range for accurate positioning.

Instructions

Move the bot to a specific position

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeNoHow close to get to the target (default: 1)
xYesX coordinate
yYesY coordinate
zYesZ coordinate

Implementation Reference

  • Handler function that uses the pathfinder to create a GoalNear and move the bot to the target position with optional range tolerance.
    async ({ x, y, z, range = 1 }): Promise<McpResponse> => { try { const goal = new goals.GoalNear(x, y, z, range); await bot.pathfinder.goto(goal); return createResponse(`Successfully moved to position near (${x}, ${y}, ${z})`); } catch (error) { return createErrorResponse(error as Error); } }
  • Zod input schema defining the parameters for the move-to-position tool: x, y, z coordinates and optional range.
    { x: z.number().describe("X coordinate"), y: z.number().describe("Y coordinate"), z: z.number().describe("Z coordinate"), range: z.number().optional().describe("How close to get to the target (default: 1)") },
  • src/bot.ts:174-193 (registration)
    Registration of the 'move-to-position' tool in the registerPositionTools function using McpServer.tool method.
    server.tool( "move-to-position", "Move the bot to a specific position", { x: z.number().describe("X coordinate"), y: z.number().describe("Y coordinate"), z: z.number().describe("Z coordinate"), range: z.number().optional().describe("How close to get to the target (default: 1)") }, async ({ x, y, z, range = 1 }): Promise<McpResponse> => { try { const goal = new goals.GoalNear(x, y, z, range); await bot.pathfinder.goto(goal); return createResponse(`Successfully moved to position near (${x}, ${y}, ${z})`); } catch (error) { return createErrorResponse(error as Error); } } );

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zeeweebee/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server