Closed apprehensivetarget closed 3 years ago
Checkout the repl example. https://github.com/PrismarineJS/mineflayer/blob/master/examples/repl.js This allows you to write code directly into the console to be executed instantly. You can use this for executing functions on the bot and such.
Thanks!!
This is quite helpful, but is there a way to control the bot with commands like 'goto x y z', or is the only way to control it through sending javascript through the cmd window
This is quite helpful, but is there a way to control the bot with commands like 'goto x y z', or is the only way to control it through sending javascript through the cmd window
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.on('line', (input) => {
// Processing entered data here (input)
});
This is quite helpful, but is there a way to control the bot with commands like 'goto x y z', or is the only way to control it through sending javascript through the cmd window
There is also the mineflayer-cmd plugin.
Thanks again
How can I send commands to the bot without sending messages through the in-game server chat. Is it possible to send it through the cmd window, or is there a feature that I haven't discovered