This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BlizzardAC's profile picture

Turtle not moving

Started by BlizzardAC, 28 November 2015 - 02:18 AM
BlizzardAC #1
Posted 28 November 2015 - 03:18 AM
My turtle won't move. I am very new to all this and for some reason my turtle won't move when it is told to in the code. It will turn and everything fine but not move or place blocks. Help? Here's the code:

print("DBuild v1> Want me to build the succ? Do y/n")
input = read()
if input == "y" then
	  print("DBuild v1> Ok")
	  sleep(1)
	  print("DBuild v1> Please place me in an empty 3x3 area and type done to begin.")
	  print("DBuild v1> Important: Make sure any block in the first slot of the turtle.")
	  input = read()
	  if input == ("done") then
			print("DBuild v1> Starting...")
			sleep(2)
			turtle.select(1)
			turtle.up()
			turtle.placeDown()
			turtle.turnRight()
			turtle.forward()
			turtle.placeDown()
			turtle.forward()
			turtle.placeDown()
			turtle.turnRight()
			turtle.turnRight()
			turtle.forward()
			turtle.up()
			turtle.placeDown()
			turtle.up()
			turtle.placeDown()
			turtle.forward()
			turtle.down()
			turtle.down()
			turtle.turnLeft()
			turtle.down()
			turtle.turnRight()
			turtle.turnRight()
			print("DBuild v1> Done! Shutting down.")
			sleep(5)
			else print("DBuild v1> pero ok")
			sleep(2)
			end
	  end
if input == "n" then
	  print("DBuild v1> pero ok")
	  sleep(2)
end
valithor #2
Posted 28 November 2015 - 04:41 AM
For the moving part: Does the turtle have fuel? You can place coal in the turtles inventory, and from shell type "refuel all", and it will automatically search the inventory for fuel and refuel the turtle.

For the placing part: Does the slot selected have items in it, and are you on a server? You can change what slot is selected using turtle.select, but if you are on a server the server might have a protection plugin, which can prevent turtles from placing blocks.