Coder Social home page Coder Social logo

Comments (8)

vogonistic avatar vogonistic commented on September 27, 2024

How much does he have to jump? A series of 2-gaps?

from mineflayer-navigate.

andrewrk avatar andrewrk commented on September 27, 2024

It's inconsistent. If you do at least 10 in a row of 1-gaps it should be enough to duplicate the issue.

from mineflayer-navigate.

vogonistic avatar vogonistic commented on September 27, 2024

I'll test it tonight.

from mineflayer-navigate.

andrewrk avatar andrewrk commented on September 27, 2024

FWIW, this is not introduced by your PR - this issue existed before.

from mineflayer-navigate.

vogonistic avatar vogonistic commented on September 27, 2024

I haven't been able to reproduce this issue. Right now I have a course with 10 2-block gaps in a row and it does just fine..

from mineflayer-navigate.

andrewrk avatar andrewrk commented on September 27, 2024

Interesting. I wonder if it has something to do with processor speed and using an event loop for the physics engine.

I also noticed that if I setControlState('jump', true) and just watch the bot jump over and over, it'll hurt itself somehow and eventually die. Does this happen for you?

from mineflayer-navigate.

vogonistic avatar vogonistic commented on September 27, 2024

I'm running it on a MacBook Pro Retina (2.7 Ghz) and don't see any noticeable cpu utilization. Maybe the event loop isn't running fast enough?

Yeah, I filed a bug on that a few minutes ago. I'm guessing that it doesn't settle on the ground properly in between jumps.

from mineflayer-navigate.

duralakun avatar duralakun commented on September 27, 2024

To recreate this bug just make a 1 block distance between each block.
So block, air, block, air, block.....
The bot will jump too late, an easy fix is to change

const WAIT_TIME_BEFORE_NEW_JUMP = 0.3

in physics.js to a value lower than 0.1

from mineflayer-navigate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.