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

Bot reaches max walking speed too fast? #3283

Open
1 task done
CatgirlApril opened this issue Jan 14, 2024 · 1 comment
Open
1 task done

Bot reaches max walking speed too fast? #3283

CatgirlApril opened this issue Jan 14, 2024 · 1 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

Comments

@CatgirlApril
Copy link

  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.18.0
  • server: Spigot 1.8.9
  • node: 20.10.0

Detailed description of a problem

I am hosting a 1.8.9 server, when I (vanilla client) connect and walk around with and without sprinting it is completely fine, however when I connect a mineflayer bot and set it to just walk forward it flags all the speed checks, this has led me to believe that the bot must be walking too fast but please correct me if it is just something that I've overlooked or am missing.

When connecting the bot without an anti-cheat and walking next to it, it does appear that it moves slightly faster than I do in vanilla.

What did you try yet?

I had tried to modify the bot physics in an attempt to slow the walking speed down but despite changing all values, the bot kept walking at the same speed.

Your current code

const mineflayer = require('mineflayer');

function createBot () {
    var bot = mineflayer.createBot({
        username: "Walker",
        host: '127.0.0.1',
        port: 25565,
        version: '1.8.9'
    });

    bot.once('login', async () => {
        console.log('[Debug] Logged in!');

        await bot.waitForTicks(30);

        bot.setControlState('forward', true);

    });
}

createBot();

Additional context

Anti-Cheat in use: https://github.com/Tecnio/AntiHaxerman even if this is considered to be a bad anti cheat the fact that the speed check doesn't flag a non-op, survival player on the vanilla client but does flag a mineflayer bot should be cause for concern

@CatgirlApril CatgirlApril 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 14, 2024
@CatgirlApril
Copy link
Author

The only way I can replicate this within the vanilla client is if I go straight to the maximum walking speed without first accelerating

@CatgirlApril CatgirlApril changed the title Bot walks too fast? Bot reaches max walking speed too fast? Jan 15, 2024
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