jump
Command the Minecraft bot to jump using the MCP Server, enabling AI-controlled characters to perform in-game actions like movement and interaction.
Instructions
Make the bot jump
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/bot.ts:218-227 (handler)The handler function for the 'jump' tool. It briefly sets the bot's jump control state to true for 250ms, then false, and returns a success response.async (): Promise<McpResponse> => { try { bot.setControlState('jump', true); setTimeout(() => bot.setControlState('jump', false), 250); return createResponse("Successfully jumped"); } catch (error) { return createErrorResponse(error as Error); } }
- src/bot.ts:214-228 (registration)Registration of the 'jump' tool on the MCP server, specifying name, description (empty schema), and inline handler function.server.tool( "jump", "Make the bot jump", {}, async (): Promise<McpResponse> => { try { bot.setControlState('jump', true); setTimeout(() => bot.setControlState('jump', false), 250); return createResponse("Successfully jumped"); } catch (error) { return createErrorResponse(error as Error); } } );