4 posts
Posted 21 May 2016 - 02:55 PM
hi i started programming a turtle for building a home and i have a logic error and cant find it
(photo with the code)
https://www.dropbox....g0/ftb.png?dl=0also the code is supposed to build a 5X5 wall
7083 posts
Location
Tasmania (AU)
Posted 21 May 2016 - 03:05 PM
And the problem is…?
It's generally easier to upload your code using the
pastebin script.
1080 posts
Location
In the Matrix
Posted 21 May 2016 - 04:07 PM
Code looks like it should work, does the turtle have fuel in it?
2427 posts
Location
UK
Posted 21 May 2016 - 04:10 PM
what does it do? what are you expecting it to do?
4 posts
Posted 21 May 2016 - 06:58 PM
well i was expecting to build a 5X5 wall as i said but the turtle just turn left and right in the same position
8543 posts
Posted 22 May 2016 - 12:20 AM
How much fuel is in the turtle?
818 posts
Location
Wherever you want me to be
Posted 22 May 2016 - 12:27 AM
If there's not enough, do
refuel
in the turtle's shell while you've got coal in it's inventory
Edited on 21 May 2016 - 10:32 PM
4 posts
Posted 22 May 2016 - 12:05 PM
no the fuel isnt a problem.
i uploaded the code to pastebin so u can try it: wrMhU9dL
7083 posts
Location
Tasmania (AU)
Posted 22 May 2016 - 01:36 PM
Have you
labelled this turtle? If not, you may've lost its fuel load by breaking and replacing it at some point.
The only other possibilities as to why the turtle wouldn't move would be either you boxing it in before starting it, or you placing it in a "protected" area of your world-map.
4 posts
Posted 22 May 2016 - 07:36 PM
ok thanks for the help looks like it was in a "protected" area