altoclef icon indicating copy to clipboard operation
altoclef copied to clipboard

Mining Nether Portal Unable To Complete

Open K0shachiyamyatA opened this issue 2 years ago • 5 comments

Steps to Reproduce (as best as you can)

This issue is difficult to replicate, but if you are in a very hostile biome such as basalt biome, and you cannot mine the portal for the fast travel task, the bot will wander forever.

Expected Behavior

Bot approaches and mine's portal, pathing doesn't get stuck.

Actual Behavior (What lead to the bot getting permanently stuck)

Bot has difficulty pathing to the portal and thus cannot effectively or safety mine the obsidian.

Crashlogs and Screenshots (if applicable)

(you may drag + drop text logs and images here, thanks GitHub) https://youtu.be/vB7URyaTOdA

K0shachiyamyatA avatar Mar 24 '22 05:03 K0shachiyamyatA

Hmm, this is odd. I'll take a look into this next week.

JamesGreen31 avatar Mar 26 '22 04:03 JamesGreen31

Began looking into this. Branch on my fork created

JamesGreen31 avatar Mar 29 '22 06:03 JamesGreen31

I widely believe that the issue on this bug is rooted deep inside the bots ability to keep track of all the different things going on. Things to note about the video:

  • We are in bruhsalt biome so lot's of uneven levels (limited movement paths) surrounded by hostile mobs and dangers
  • We are mining a tough block
  • We are (seemingly) limited to only a few paths to the nether portal.

Whenever we see things like "Blacklisted", this means the bot is trying to either avoid getting stuck, or avoid dying. Mining obsidian is a really dangerous task because it takes a long time.

Suggested Fix: To be honest, block tracking probably needs a refactor or a re-design. At the very least, a look over again. However, the easiest way to overcome this bug now is to simply collect the 10 obsidian needed for a portal in the overworld. It is much much safer and is very unlikely to break since we aren't stuck in the basalt biome. I have only ever seen this issue happen in the basalt biome. Pretty much everytime we get that biome, altoclef gets messed up. Possible solutions to this are to simply get out of that biome. More research into this is needed.

The suggested course of action here is to collect obsidian prior to entering the nether portal for fast travel. This will protect us from the pitfalls of mining such a tough material in the most dangerous biome in Minecraft.

Resolution difficulty: easy (if we do simple fix) or Very Hard Timeline: probably a day (if we do simple fix) or probably a week or a month

JamesGreen31 avatar Mar 29 '22 06:03 JamesGreen31

Began development on this. The main thing to worry about here is the fix for Fast Travel.

The timeline we are following here is a hard timeline, which is 1-2 weeks.

JamesGreen31 avatar Apr 01 '22 05:04 JamesGreen31

With 1.18.2 done, I can finally get back to this. I plan to re work this task. Delaying this another 2 weeks.

JamesGreen31 avatar Apr 16 '22 06:04 JamesGreen31