Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

prevent Baritone from breaking mob spawners

epifeny opened this issue ยท 9 comments

commented

What do you need help with?

I want to prevent Baritone from breaking mob spawners
I tried adding mob_spawner to the blocksToAvoidBreaking to no avail:

#set blocksToAvoidBreaking crafting_table,furnace,lit_furnace,chest,trapped_chest,standing_sign,wall_sign,mob_spawner

Final checklist

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

Check your Baritone settings file in your .minecraft to see if the command is working. If not, you can modify it manually.

commented

Check your Baritone settings file in your .minecraft to see if the command is working. If not, you can modify it manually.

Yes, it updates, but it still breaks spawners.
image

commented

blocksToAvoidBreaking is known to not work in some (many) cases, however Baritone should never break any block if allowBreak is false like it is in the settings file in your last comment.

commented

blocksToAvoidBreaking is known to not work in some (many) cases, however Baritone should never break any block if allowBreak is false like it is in the settings file in your last comment.

This is untrue, in some cases baritone will break blocks even with allowBreak disabled.

commented

blocksToAvoidBreaking is known to not work in some (many) cases, however Baritone should never break any block if allowBreak is false like it is in the settings file in your last comment.

Oh I didn't see this. Yeah, that probably just means your settings aren't getting loaded properly into Baritone. What version of baritone are you using?

commented

Yes, it updates, but it still breaks spawners.

Try to specify all the types of spawners using mob_spawner:** (data tag for whatever mob). I didn't test it but it's worth a shot.

commented

blocksToAvoidBreaking is known to not work in some (many) cases, however Baritone should never break any block if allowBreak is false like it is in the settings file in your last comment.

Oh I didn't see this. Yeah, that probably just means your settings aren't getting loaded properly into Baritone. What version of baritone are you using?

I'm using 1.2.15

commented

Yes, it updates, but it still breaks spawners.

Try to specify all the types of spawners using mob_spawner:** (data tag for whatever mob). I didn't test it but it's worth a shot.

It won't even accept that type of syntax
image

commented

breaking spawners while in the blocksToAvoidBreaking does work as "intended" as it's location in code, per my testing. avoid isn't the same thing as never... to quantify it, baritone will only break an avoid block when it's cost is 10x lower than the alternative or in other words it basically counts as breaking it for 10x as long in the cost calculations (for anyone interested see https://github.com/cabaletta/baritone/blob/master/src/main/java/baritone/utils/ToolSet.java#L162-168).

this doesn't really follow what the settings docs say tho so see my pr.