I was expecting to see the bot log in to the server
ypeError: Cannot set properties of undefined (setting 'height')
at Client.<anonymous> (/home/daniil/node_modules/mineflayer/lib/plugins/physics.js:264:23)
This is a problem with your code, likely due to you not waiting for the correct event like spawn before calling a mineflayer API. Please go to the discord and provide all the code you used to reproduce the error.
Versions
When you log on to the server, the code turns off and an error pops up.
I tried the bot.EntityInS method
No. I tried the very initial example.
Your current code
const bot = mineflayer.createBot({ host: serverAddress, port: serverPort, username: username, });
/ const bot = mineflayer.createBot({ host: serverAddress, port: serverPort, username: username, }); /