Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- y = 0
- tf = true
- print("place x value (how far ahead of turtle?)")
- x = io.read()
- print ("Place y value (how far to the side?) ")
- y = io.read()
- value = 0
- x ^ y = value
- if value > 576 then
- print("This is too big fo rthe turtle.")
- else
- a = turtle.getItemCount(1)
- b = turtle.getItemCount(2)
- c = turtle.getItemCount(3)
- d = turtle.getItemCount(4)
- e = turtle.getItemCount(5)
- f = turtle.getItemCount(6)
- g = turtle.getItemCount(7)
- h = turtle.getItemCount(8)
- i = turtle.getItemCount(9)
- end
- total = a + b + c + d + e + f + g + h + i
- if value > total then
- print("You dont have enough blocks")
- else
- while y > 0 do
- y = y - 1
- z = x
- while z > 0 then
- z = z - 1
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- z = 0
- end
- if tf = true then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- tf = false
- else
- turtle.turnLeft()
- turtle.forward()
- turle.turnLeft()
- tf = true
- end
- end
- end
- print("Task Complete!")
Add Comment
Please, Sign In to add comment