Posted 28 January 2015 - 06:05 PM
I am using Direwolf20's stair program code for turtles (from one of his tutorials). I also tried to modify it to place lights. It does everything it's supposed to (even turn to place it), but it doesn't place the torches. Also, the torches are in slot 15.
Here is the code:
Here is the code:
turtle.digDown()
turtle.down()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.down()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.select(15)
turtle.turnRight()
turtle.place()
turtle.turnLeft()
turtle.digDown()
turtle.down()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
turtle.down()
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.select(15)
turtle.turnRight()
turtle.place()
turtle.turnLeft()
The turtle.place() is where the torch placing is.