Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

259
Vistas
Mineflayer-pathfinder goto coordinates

I want to program that I can enter coordinates in the Minecraft chat and the bot will go to them. But I don't know how to program something like that? Can anyone help?

I am new to this field and would like to test something simple, but I just can't do it.

This is the code I try to use but it wont work:

var mineflayer = require('mineflayer')
const { pathfinder, Movements, GoalBlock } = require('mineflayer-pathfinder')
const pathfinder = require('mineflayer-pathfinder').pathfinder
const Movements = require('mineflayer-pathfinder').Movements
const { GoalNear } = require('mineflayer-pathfinder').goals
const inventoryViewer = require('mineflayer-web-inventory')

var bot = mineflayer.createBot({
  host: "localhost",   
  username: "MLGPlayer9",
  version: "1.18.1"
})

inventoryViewer(bot)

bot.loadPlugin(pathfinder)

function greeting() {
  bot.chat("Mooooooin");
}

bot.once("spawn", greeting);
 
function goto() {
  bot.pathfinder.goto(1, 1, 1);
  
}

bot.once("spawn", goto);
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda