Posted 31 December 2012 - 02:24 PM
So i'm making a turtle quarry that will be able to mine an area of space i define, it uses 2 chests one for drop off, and the other for getting fuel.
Here is the code i have: http://pastebin.com/2mA6AMRK
I'm not sure why it's not working, i really confused as to why the turtle is going in strange directions and also sometimes continueing in a direction in-defiantly. i'm not that great with lua, I'm much more used to c#…
To my understanding of lua it should not be doing these things but it is. can you guys take a look at it and tell me what i'm doing wrong.
The turtle should mine the 5x5 red area when set to 5x5 but as you can see by the mess it's doesn't
The top chest is the fuel chest, the bottom is the drop off.
The turtle faces the home chest initially
the block the turtle is in is "home".
I hope you guys can help me.
Edit: The link has been updated with the edited code.
Here are the problems i'm currently experiencing, all the mining is working correctly but the problem i have is with resuming, after the turtle's inventory is full, the way I have right not is not working at all, in some cases it would get the turtle back to the right spot but from there it breaks, any suggestions.
Here is the code i have: http://pastebin.com/2mA6AMRK
I'm not sure why it's not working, i really confused as to why the turtle is going in strange directions and also sometimes continueing in a direction in-defiantly. i'm not that great with lua, I'm much more used to c#…
To my understanding of lua it should not be doing these things but it is. can you guys take a look at it and tell me what i'm doing wrong.
The top chest is the fuel chest, the bottom is the drop off.
The turtle faces the home chest initially
the block the turtle is in is "home".
I hope you guys can help me.
Edit: The link has been updated with the edited code.
Here are the problems i'm currently experiencing, all the mining is working correctly but the problem i have is with resuming, after the turtle's inventory is full, the way I have right not is not working at all, in some cases it would get the turtle back to the right spot but from there it breaks, any suggestions.
Edited on 01 January 2013 - 12:57 PM