Jump to content




Building program

turtle help

9 replies to this topic

#1 billyon

  • Members
  • 4 posts

Posted 21 May 2016 - 01: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=0
also the code is supposed to build a 5X5 wall

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 21 May 2016 - 02:05 PM

And the problem is...?

It's generally easier to upload your code using the pastebin script.

#3 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 21 May 2016 - 03:07 PM

Code looks like it should work, does the turtle have fuel in it?

#4 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 21 May 2016 - 03:10 PM

what does it do? what are you expecting it to do?

#5 billyon

  • Members
  • 4 posts

Posted 21 May 2016 - 05: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

#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 May 2016 - 11:20 PM

How much fuel is in the turtle?

#7 Waitdev_

  • Members
  • 432 posts
  • LocationAdelaide

Posted 21 May 2016 - 11:27 PM

If there's not enough, do
refuel
in the turtle's shell while you've got coal in it's inventory

Edited by Waitdev_, 21 May 2016 - 11:32 PM.


#8 billyon

  • Members
  • 4 posts

Posted 22 May 2016 - 11:05 AM

no the fuel isnt a problem.
i uploaded the code to pastebin so u can try it: wrMhU9dL

#9 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 22 May 2016 - 12: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.

#10 billyon

  • Members
  • 4 posts

Posted 22 May 2016 - 06:36 PM

ok thanks for the help looks like it was in a "protected" area





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users