Posted 21 May 2013 - 05:30 PM
Hello
I have been trying to write a code that places the block in front of it, empties its inventory and then picks the block up again when it is not receiving a redstone signal, which is pulsed by a computer. I also want it not to bug out if I restart it as I believe I have done. I wrote this, probably not in the most efficient way, but it sometimes bugs out and instead of collecting the original item, it has a different item in the turtle. This only happens sometimes, normally after I restart the server, even though I do it at the end of the turtles cycle with the computer off.
http://pastebin.com/Q27M0qWC - Turtle code
http://pastebin.com/y0mYPshE - Computer code
If you have any suggestions that could improve my code by stopping this bug and making it more efficient it would be most appreciated
Thanks
- samken600
I have been trying to write a code that places the block in front of it, empties its inventory and then picks the block up again when it is not receiving a redstone signal, which is pulsed by a computer. I also want it not to bug out if I restart it as I believe I have done. I wrote this, probably not in the most efficient way, but it sometimes bugs out and instead of collecting the original item, it has a different item in the turtle. This only happens sometimes, normally after I restart the server, even though I do it at the end of the turtles cycle with the computer off.
http://pastebin.com/Q27M0qWC - Turtle code
http://pastebin.com/y0mYPshE - Computer code
If you have any suggestions that could improve my code by stopping this bug and making it more efficient it would be most appreciated
Thanks
- samken600