Posted 12 March 2014 - 05:12 PM
The script is at http://pastebin.com/EbhD0vUV
I making a mining script that mines 3 layers at a time
Each time it finnishes a group of layers, it should move to the corner of the quarry below the start position,
where it saves those coordinates, before climbing to the start position to unload and refuel.
It works correctly for the 1st group of layers, returns as expected, then moves down to the saved coordinates
to begin digging at a new level.
When it finnishes the 2nd group of levels, it does return to the correct corner, but when it should climb up
to the start position, it instead of moves 1 block up and 1 block down in an endless loop.
ctrl+t and ctrl+r will not stop it, the turtle has to be broken before it crashes the game.
Iv'e pasteda modified sample of the problem section at http://pastebin.com/QzBR0Nad
Line 14 appear to be the problem, it alternates between tru and false no matter what the value of CurrentY is
I making a mining script that mines 3 layers at a time
Each time it finnishes a group of layers, it should move to the corner of the quarry below the start position,
where it saves those coordinates, before climbing to the start position to unload and refuel.
It works correctly for the 1st group of layers, returns as expected, then moves down to the saved coordinates
to begin digging at a new level.
When it finnishes the 2nd group of levels, it does return to the correct corner, but when it should climb up
to the start position, it instead of moves 1 block up and 1 block down in an endless loop.
ctrl+t and ctrl+r will not stop it, the turtle has to be broken before it crashes the game.
Iv'e pasteda modified sample of the problem section at http://pastebin.com/QzBR0Nad
Line 14 appear to be the problem, it alternates between tru and false no matter what the value of CurrentY is