jump
Control a Minecraft character to jump in real-time, enabling movement and interaction within the game world through AI commands.
Instructions
Make the bot jump
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/position-tools.ts:63-68 (handler)Handler function for the "jump" tool. It sets the bot's jump control state to true, then false after 250ms, and returns a success response.async () => { const bot = getBot(); bot.setControlState('jump', true); setTimeout(() => bot.setControlState('jump', false), 250); return factory.createResponse("Successfully jumped"); }
- src/tools/position-tools.ts:62-62 (schema)Schema for the "jump" tool, which is empty indicating no input parameters are required.{},
- src/tools/position-tools.ts:59-69 (registration)Registration of the "jump" MCP tool using factory.registerTool, including name, description, schema, and handler.factory.registerTool( "jump", "Make the bot jump", {}, async () => { const bot = getBot(); bot.setControlState('jump', true); setTimeout(() => bot.setControlState('jump', false), 250); return factory.createResponse("Successfully jumped"); } );