Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

skipblocks function

Barrybeeebenson opened this issue · 3 comments

commented

#skipblocks function. (you can change the name of it to your liking)

this would be a schematic building function that is mainly meant for buildinlayers true.

the skipblocks function would allow you to skip building the next desired amount of blocks.

example:
"#skipblocks 50" would tell baritone that the next 50 blocks are completed

Settings

the suffix "partial" after the block value means it will have baritone only skip updating those blocks if they get broken or misplaced. example: "skipblocks 50 partial" would mean that baritone would still build those 50 blocks like normal, but it would skip replacing those if they were broken. (see functionality details in next section)

Context

the functionality would be for those who are building massive schematics, but there are mountians nearby. usually we would be able to avoid bombing the mountain by simply using "buildignoreexisting" which does help, however inside those mountains are caves which baritone sees as available places to build, so baritone digs through the mountain to place a few blocks, then returns, leaving behind a tunnel that baritone will also as an available place to build, causing a loop.

this setting would fix this issue, because when encountering a cave system inside a mountain you could simply use freecam to count roughly how many blocks of cave there are for that layer, and use "#skipblocks" 30 or however many is needed, and baritone would just skip those blocks, marking it as complete.

i see applications for this being used for my project, along with some others, and its an important feature to add in my opinion.

Final checklist

  • I know how to properly use check boxes
  • [ x] I have not used any OwO's or UwU's in this issue.
commented

Baritone doesn't even know which block will be the next to be placed until it actually places the block so skipping "the next 50 blocks to be placed" in the way you want to use it would require simulating all of Baritones behavior for the next 50 placements. That's technically possible but way too much effort.

commented

You might have some luck with buildOnlySelection, though I have to admit selecting parts to exclude rather than include would fit your case better. And if you select a cave by accident you'll probably have to redo the entire selection...

commented