Skip to main content
Glama

getPosition

Retrieve the exact coordinates of a player within the Minecraft world using a remote server integration. Simplify navigation and location tracking for enhanced gameplay or automation tasks.

Instructions

Get the current position of the player in the Minecraft world

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'getPosition' MCP tool. The handler retrieves and returns the bot's current entity position in the Minecraft world (X, Y, Z coordinates). Uses empty schema ({}).
    'getPosition', 'Get the current position of the player in the Minecraft world', {}, async () => { if (!botState.isConnected || !botState.bot) { return createNotConnectedResponse() } try { const position = botState.bot.entity.position return createSuccessResponse( `Current position: X=${position.x.toFixed(2)}, Y=${position.y.toFixed( 2 )}, Z=${position.z.toFixed(2)}` ) } catch (error) { return createErrorResponse(error) } } )

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/nacal/mcp-minecraft-remote'

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