Posted 17 November 2012 - 05:59 AM
Progression list :
- Doing the program
- Fix bugs
- Optimization of the code
Feature :
- Mine 1*1 tunnel and mining ore veins
- Go back when full
- Refuel (I want to do a refuel with lava but we can't detect lava with compareDown() and a lava bucket)
I post it here because I have a bug strange, I think the line 358 is not working all time, sometimes the turtle just go down and up and etc…
So here is the code on pastebin !
http://pastebin.com/x92LfbQQ
To test the code ingame just write that : pastebin get x92LfbQQ mining
You need to put cobblestone, gravel, stone and dirt in the fist 4 slots (you can check more slots modifying the nbSlotVerif var)
If you have any suggestions, tell me !
Edit :
I worked a little bit more on the bug, this is very strange, with my eyes i can find the pos but gsub or string.find() don't find it !
Console output : http://i.imgur.com/y0ip0.png
Please don't take the code, modifying it and after say it's yours.
- Doing the program
- Fix bugs
- Optimization of the code
Feature :
- Mine 1*1 tunnel and mining ore veins
- Go back when full
- Refuel (I want to do a refuel with lava but we can't detect lava with compareDown() and a lava bucket)
I post it here because I have a bug strange, I think the line 358 is not working all time, sometimes the turtle just go down and up and etc…
So here is the code on pastebin !
http://pastebin.com/x92LfbQQ
To test the code ingame just write that : pastebin get x92LfbQQ mining
You need to put cobblestone, gravel, stone and dirt in the fist 4 slots (you can check more slots modifying the nbSlotVerif var)
If you have any suggestions, tell me !
Edit :
I worked a little bit more on the bug, this is very strange, with my eyes i can find the pos but gsub or string.find() don't find it !
Console output : http://i.imgur.com/y0ip0.png
Please don't take the code, modifying it and after say it's yours.