Advertisement
argaman

dada

Jul 24th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local x=0
  2. local y=0
  3. print ("write the x value:")
  4. x=read()
  5. print ("write the y value:")
  6. y=read()
  7. local a = 1
  8. while a < y do
  9. for i = 0, x-1 do
  10. turtle.place()
  11. turtle.turnRight()
  12. turtle.forward()
  13. turtle.turnLeft()
  14. end
  15. turtle.place
  16. turtle.turnLeft()
  17. turtle.turnLeft()
  18. for i = 0, x-1 do
  19. turtle.forward()
  20. end
  21. turtle.turnRight()
  22. turtle.up()
  23. a=a+1
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement