Skip to content

Conversation

@Erdef119
Copy link

@Erdef119 Erdef119 commented Nov 1, 2025

The minimum Y was wrong for versions >1.17, and height was wrong for >1.18

The minimum Y and max height was wrong
@Erdef119 Erdef119 mentioned this pull request Nov 1, 2025
1 task
@olcxja
Copy link

olcxja commented Nov 1, 2025

so cool now I can bot my server

@extremeheat
Copy link
Member

This is supposed to be set by the server in the codec and specific dimension data, why are you hard coding it ? The default values are set simply for old versions.

@Erdef119
Copy link
Author

well it didn't work on a server i was playing on and there is a check for onGround below y 0, idk why it doesn't work but when i changed these values it worked

@extremeheat
Copy link
Member

Can you provide log output after adding this code :

bot._client.on('login', (d) => console.dir(d, { depth: null })
bot._client.on('respawn', (d) => console.dir(d, { depth: null })
bot.on('spawn', () => console.dir(bot.registry.dimensionsByName, { depth: null })

@Erdef119
Copy link
Author

out.txt
Note that this data could be from before the bot gets transferred to the server with onGround checks (this is after the code changes)

@Erdef119
Copy link
Author

I have just looked into the logs, and there is data from the other servers

@extremeheat
Copy link
Member

Could be an issue with mismatched field names between login and respawn. I notice worldType and dimension have unequal naming between the two

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants