NukityMcNuker

should work?

Jul 27th, 2021 (edited)
251
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function placeAnGo(moves)
  2.   y = 0
  3.   for y=1,moves,1 do
  4.     turtle.forward(1)
  5.     turtle.placeDown()
  6.   end
  7. end
  8. function pyramid(moves)
  9.  
  10.   i = 0
  11.   for i=1,4,1 do
  12.      placeAnGo(moves)
  13.      turtle.turnRight()
  14.   end
  15. end
  16.  
  17.  
  18.  
  19. num = read("*n")
  20. o = 0
  21. for o=1,num,1 do
  22.   turtle.forward(1)
  23.   turtle.up(1)
  24.   pyramid(num-o)
  25. end
  26.  
RAW Paste Data