Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i'm not sure how to fix this & i didn't find a way to fix this. #3541

Open
5yf1xed opened this issue Jan 5, 2025 · 0 comments
Open

i'm not sure how to fix this & i didn't find a way to fix this. #3541

5yf1xed opened this issue Jan 5, 2025 · 0 comments
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f

Comments

@5yf1xed
Copy link

5yf1xed commented Jan 5, 2025

Versions

  • mineflayer: lastest as of 05/01/24 (4.23.0)
  • server: vanilla/spigot/paper
  • node: v22.12.0

Detailed description of a problem

after login the bot doesn't register (or crash,i'm not sure yet) the on.("spawn") event and doesn't apear in-game

##code
const mineflayer = require('mineflayer');

const bot = mineflayer.createBot({
host: 'mc.reallyworld.ru',
username: 'examplebotName',
auth: 'offline',
version: '1.16.5'

bot.on('spawn', () => {
console.log("spawned")
mineflayerViewer(bot, { port: 3000 }
const path = [bot.entity.position.clone()]
bot.on('move', () => {
if (path[path.length - 1].distanceTo(bot.entity.position) > 1) {
path.push(bot.entity.position.clone())
bot.viewer.drawLine('path', path)}
});

Expected behavior

i expected for the .on("spawn") event to triger, :P

##error i resived:
'''
Ignoring block entities as chunk failed to load at 0 0
Ignoring block entities as chunk failed to load at -1 -1
Ignoring block entities as chunk failed to load at -1 0
Ignoring block entities as chunk failed to load at -1 1
Ignoring block entities as chunk failed to load at 0 -1
Ignoring block entities as chunk failed to load at 0 1
Ignoring block entities as chunk failed to load at 1 -1
Ignoring block entities as chunk failed to load at 1 0
Ignoring block entities as chunk failed to load at 1 1
'''
i checked the coordinates,the spawn chunk,the actual chunk (0,0,-1,-1.etc...) nothing

@5yf1xed 5yf1xed added possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Projects
None yet
Development

No branches or pull requests

1 participant