michaelzangl / minebot

Minebot
GNU General Public License v3.0
146 stars 48 forks source link

Clearing a layer above head bug #227

Open Larax1011 opened 6 years ago

Larax1011 commented 6 years ago

When i set the bot to clear a layer above its head, it will clear the initial block above its head, jump and put a block underneath itself, destroy the block it placed and then move one space ahead to the next block to be clear. Repeats over and over for each block.

Larax1011 commented 6 years ago

Lol forgot to mention... the height of the room is 2 blocks high, so there is no need for the bot to place a block underneath itself once it destroys the first block above its head since it's only clearing 1 layer of blocks aka the layer just above its head. So i'm guessing this is supposed to be a bug not an enhancement,because it's arbitrary to for the bot to place a block underneath it since it wont break any blocks while standing on the block it placed.

gsquaredxc commented 6 years ago

@Larax1011 well, I actually think this might be an enhancement because this would take a whole new part of the code. The mining function is downwards, so making a separate upwards function may be a whole new implementation, i.e. a enhancement. However, the bot does need this competed soon because it would be beneficial to the command and bot itself. In the meantime, start at the top and work your way down when mining things.