Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Bot gets stuck when falling into water

nbyrd opened this issue · 18 comments

commented

Some information

Operating system: Windows 10
Java version: 1.8.0_51 64-bit
Minecraft version: 1.14.4
Baritone version: 1.4.0

How to reproduce

Have baritone path around the world (#explore, #mine, #goto, etc). If the bot falls into water (not water-bucket, but e.g. the ocean), it gets stuck and is never able to escape on its own, instead choosing to float indefinitely.

It should time out and re-calculate path when this happens.

Final checklist

  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

This happens to me too, but if blockstoavoid is set to water, it works

commented

image

No log with chatDebug

commented

I still have the bug so maybe reopen it?

commented

Yeah but it has to dig a path under water which is not very fast nor effective

commented

See #3200

commented

I guess it'll never be reopened because @5HT2 can't reproduce it so it must not exist

commented

when this happens to me it doesn't find a new path

Sent with GitHawk

commented

Do you have allowedWalkOnWater enabled without Jesus 🤔

commented

I have this problem too without impact. so no cheats. that command is invalid for me.
sometimes i get stuck in water when falling into water from a few blocks up

commented

@0-x-2-2 allowedWalkOnWater is explicitly set to false, so nope.

As @Grovre says, the bot fails to find a new path, and as @realflow100 says, this happens when falling from at least a couple blocks up. I guess the best way to reproduce this is to find an ocean biome with icebergs, stand on one, and try to path somewhere. Chances are, it'll get stuck.

commented

Can you enable chatDebug?

commented

@0-x-2-2 I enabled chatDebug and reproduced the issue. Image of chat output is below.

Additional steps to reproduce:

  1. Create a world with seed 845384498.
  2. Go to coordinates X=-33, Y=68, Z=-67. (This should be atop a small ice berg.)
  3. #goal 1000 0 and #path to start things moving.

At this point, you will observe that the bot navigates into water and immediately gets stuck. (If it doesn't happen, give it a few tries, but it happened 100% of the time when I tested.) Notice how the bot makes no attempts to rectify the situation. Occasionally, this can be fixed by manually placing blocks under the bot's feet or breaking nearby blocks, but it's not guaranteed.

image

(Do note, I #stoped after the bot got stuck for several seconds without producing any log output.)

commented

Try "blocksToAvoid water".
I had the same problem and it solved the issue to me. I think.

commented

I feel like this may be 2 issues mixing into one,
i know that when i wanted to test baritone i went onto 9b9t (because screw queuing for hours) after loading in its all water around spawn with some blocks mixed in, i ask baritone to move and it says it couldn't move more than 1 block at a coefficient of 10 (or something like that), so water may be a bit of an issue
In another instance while using the build command, i noticed that baritone could often fall into either a loop of placing and breaking blocks or, more relevant to this, it would freeze and stop all actions until i broke and placed blocks around and/or under it, until it started pathing again

commented

Please reopen this if you're still experiencing this issue, I can't reproduce it.

commented

or even pathing short distances

commented

This still happens when pathing long distances and dropping into water

commented

temporary solution for me is just to pause and move so you arent in the centre of a block then resume