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 treats foot-height entity as wall. #3213

Open
1 task done
bainchild opened this issue Oct 23, 2023 · 0 comments
Open
1 task done

Bot treats foot-height entity as wall. #3213

bainchild opened this issue Oct 23, 2023 · 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

@bainchild
Copy link

bainchild commented Oct 23, 2023

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

Versions

  • mineflayer: 4.14.0
  • server: vanilla 1.20.1
  • node: 20.8.0

Detailed description of a problem

I was trying to get the bot to the middle of a water pool, by walking it over a boat, and it wasn't moving. I eventually teleported the bot to where I wanted it and it started walking backwards.
The physics of the bot doesn't support walking on to boats, and instead treats them as walls.

8mb.video-yxw-XJRmMCcK.mp4

Your current code

// note: replaced chat handling with the code I used in the video
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
  host: 'localhost',
  port: 44741,
  username: 'SentryBuster',
  auth: 'offline'
})
bot.once('login',()=>{
  bot.settings.skinParts.showCape = false
  var flipped = false;
  setInterval(()=>{
    let skinparts = bot.settings.skinParts;
    // skinparts.showJacket = flipped;
    // skinparts.showLeftSleeve = flipped;
    // skinparts.showRightSleeve = flipped;
    // skinparts.showLeftPants = flipped;
    // skinparts.showRightPants = flipped;
    skinparts.showHat = flipped;
    flipped=!flipped
    bot.setSettings(bot.settings);
  },250)
})
bot.on('spawn',()=>{
  bot.setControlState('forward',true);
  setTimeout({
    bot.setControlState('forward',false);
    bot.setControlState('back',true);
  },250)
})

Expected behavior

I expect the bot to walk onto the boat, just like it does for slabs and stairs.

Additional context

I searched the issues and found a similar issue (#228) about the bot having issues with block collision boxes, but no mention of entities.

I definitely could modify the bot to jump, and it was only for the bot to get to the middle of the water pool, but I feel like it'd be good to make an issue about this, if anyone else encounters it, or if it becomes a bigger problem in the future. This is an edge case and may not be worth fixing.

@bainchild bainchild 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 Oct 23, 2023
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