### VS Code Debug Launch Configurations for mineflayer-bedrock Source: https://deepwiki.com/bedrock-bot/mineflayer-bedrock/2 This snippet outlines the VS Code launch configurations provided in `.vscode/launch.json` for debugging the mineflayer-bedrock bot. It includes configurations for the main bot execution ('Launch Program') and a packet analysis tool ('dump-packets'). Both use experimental TypeScript support and specify skip patterns to avoid debugging Node.js internals or certain modules. ```json { "version": "0.2.0", "configurations": [ { "name": "Launch Program", "type": "node", "request": "launch", "skipFiles": [ "/**", "**/@azure/msal-node/node_modules/uuid/**", "**/node_modules/get-intrinsic/index.js" ], "program": "${workspaceFolder}/packages/mineflayer-bedrock/src/main.ts", "args": [ "--experimental-strip-types", "--disable-warning=ExperimentalWarning" ], "outFiles": [], "sourceMaps": true }, { "name": "dump-packets", "type": "node", "request": "launch", "skipFiles": [ "/**", "**/@azure/msal-node/node_modules/uuid/**", "**/node_modules/get-intrinsic/index.js" ], "program": "${workspaceFolder}/tools/dump-packets.ts", "args": [ "--experimental-strip-types", "--disable-warning=ExperimentalWarning" ], "outFiles": [], "sourceMaps": true } ] } ``` -------------------------------- ### Direct Node.js Execution of mineflayer-bedrock Bot Source: https://deepwiki.com/bedrock-bot/mineflayer-bedrock/2 This snippet demonstrates how to run the mineflayer-bedrock bot directly using Node.js with experimental TypeScript support. It shows both a basic command and a recommended command that suppresses experimental warnings. The `--experimental-strip-types` flag allows Node.js to parse TypeScript syntax at runtime, and the tsconfig.json is configured for type checking only (`noEmit: true`). ```bash node --experimental-strip-types packages/mineflayer-bedrock/src/main.ts ``` ```bash node --experimental-strip-types --disable-warning=ExperimentalWarning packages/mineflayer-bedrock/src/main.ts ``` -------------------------------- ### mineflayer-bedrock Bot Connection Configuration Source: https://deepwiki.com/bedrock-bot/mineflayer-bedrock/2 This snippet details the connection parameters used by the mineflayer-bedrock bot to connect to a Bedrock server. It specifies the host, port, authentication method (offline), bot username, target protocol version, profile storage location, and confirms offline mode operation. ```typescript const bot = mineflayerBedrock.createBot({ host: '127.0.0.1', port: 19132, // Default Bedrock port auth: 'offline', username: 'BedrockBot', version: 'bedrock_1.21.80', profilesFolder: 'C:/git/profiles', offline: true }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.