Closed thejoshwolfe closed 11 years ago
I think this list should live in navigate, not mineflayer
Proposed API:
bot.navigate.blocksToAvoid = {
51: true, // fire
59: true, // wheat
...
}
And it should come with sensible defaults.
And then in the code, isSafe
will check this property and return false
if it is a block to avoid.
sounds good
or other hazardous blocks. it's also rude to walk through crops. should we avoid tripping redstone triggers as well (pressure plates, trip wires, etc.)? perhaps there should be a parameter that is a list of ids to avoid.