Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Branch mine

SeasonalFerret opened this issue ยท 13 comments

commented

Wow this literally hasn't been suggested before? tf

Describe your suggestion

Okay so legitmine was made with the principle that it would make you look more legit to admins.
In all honesty that's a load of baloney. If I'm watching a player and they xray towards a cave, and take specific directions to go to a small block of diamond that was outcropped, that's sus af.

Branchmine would do literally that: branchmine. Dig down to Y=11, dig a tunnel - trace back, dig that way. Then come back in the middle, move 3 blocks to forward, repeat. Get any ores that crop up in the middle. Maybe even fill in the tunnels with a single block at the hallway to keep creepers from coming back in at you.

image

Settings

Distances the branches go, space between branches, what Y level, how wide the "main shaft" should be.

Context

You're not going to find all of the diamonds everywhere. You're not expected to - that's sus. Your goal is to mine like a legit human so that when people ask you where you got 2 stacks of diamonds, you can show them the mines under your base and the miles of branch-mining.

Final checklist

  • I have not used any OwO's or UwU's in this issue.
commented

So it's 2022 now. Getting a branch mine mode would be very nice for the majority of users. I don't really want to mine every ore all over the place and backfill. I just want to branch mine without having to get finger, hand, or wrist injuries. It just makes a task most people do already into an automated task. Would be fantastic. Please? :) What can we do to help get this added?

commented

As of 1.18, I don't really think this is as important anymore.
Caves are huge, ores are plentiful. If anything, if I saw a player with a branch mine these days I would call them silly. "Just go explore, there's diamonds everywhere in caves".
Legitmine is now preferred. Pre-1.18, it would randomly just mine hundreds of blocks until it hit a cave- sometimes those caves would only be about 10 blocks long and 3 blocks wide. It would mine whatever ore was exposed, then immediately go back to mining another 40-200 block long tunnel.
Post-1.18, now it hardly ever mines at all. Caves are gigantic, any distance between one cave to the next would hardly be noticable if mined through.

I would still love to see this implemented, but strip mining isn't as efficient as it used to be. Branchmining is more than likely to just constantly run into caves now.

commented

Strip mining is still way more efficient according to my personal testing.

This is because diamonds are more frequent the lower down you are, and most deepslate caves you find are relatively high compared to just above bedrock.
Along with that, the decreased chance of diamonds spawning exposed to the air makes the amount you find way worse.

commented

Also, this would be great for the nether.

commented

you can use the build function to make an schematic resemling that and then turn on buildrepeat

Wouldn't mine actual ores it found.

commented

With this in mind, legitmine isn't so much as a legitmine as it is just an "anti-xray mode". It mines only ores visible (near air blocks), which is generally what anti-anti-xray's will only show you on anti-xray servers. Sooo... proposal to rename legitmine to anti-xray?

commented

stripmine mode for baritone: perfect!

commented

invert legitmine and just call it "xray".

commented

you can use the build function to make an schematic resemling that and then turn on buildrepeat

commented

I did an actual BranchmineSchematic class that dynamically includes ores, but that did not work out well when building it because

  1. Baritone took weird routes to the blocks, clearly showing it is building a schematic
  2. it still punched out walls to get ores diagonally in the ceiling
  3. There is a problem with build repeat, that forces you to start every position manually (#1925)
commented

i would really appreciate this feature. i was looking for this

commented

@ZacSharp

did an actual BranchmineSchematic class that dynamically includes ores

Where could I find resources to make one of these myself?

it still punched out walls to get ores diagonally in the ceiling

This can be fixed using legitMineIncludeDiagonals

There is a problem with build repeat, that forces you to start every position manually (#1925)

#1925 is now closed.

Given that repeating schematic, I feel like branch mining is possible!

commented

@CodeF53

Where could I find resources to make one of these myself?

uh, I just used the api to create a schematic that makes tunnels and dynamically includes air, as well as a command to build it.
So basically Baritone is what you need.

This can be fixed using legitMineIncludeDiagonals

nice thought, but schematics are built by BuildProcess, not MineProcess and the schematic is what actually decides over which blocks are to be mined (or placed).
My idea was to rather depend on the state of the blocks that would come first when building it the normal way, but schematics only know little about the world around them (just the current state of the block being queried but not its neighbours)
This is also why it is so obvious it is building a schematic; the build order for this is garbage.

#1925 is now closed.
Given that repeating schematic, I feel like branch mining is possible!

true point, maybe I'll have a look at it again, but there are other things I have planned as well
And given the fact that I have put this off since I made the pr closing #1925, I don't think it is likely for me to start soon.