Advertisement
hevohevo

CC: tofu4

Mar 3rd, 2016
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. -- tofu4
  2. --  surround four directions with walls
  3.  
  4. turtle.up()  -- move up
  5.  
  6. -- make 4 sides of a square
  7. for hen=1,4 do
  8.   -- put 4 blocks in the ground
  9.   for i=1,4 do
  10.     turtle.forward()  -- move to next position
  11.     turtle.placeDown()  -- put a block
  12.   end
  13.  
  14.   turtle.turnRight()  -- turn 90 degrees to the right
  15. end
  16.  
  17. turtle.up() -- move up
  18.  
  19. -- make 4 sides of a square
  20. for hen=1,4 do
  21.   -- put 4 blocks in the ground
  22.   for i=1,4 do
  23.     turtle.forward()  -- move to next position
  24.     turtle.placeDown()  -- put a block
  25.   end
  26.  
  27.   turtle.turnRight()  -- turn 90 degrees to the right
  28. end
  29.  
  30. turtle.up() -- move up
  31.  
  32. -- make 4 sides of a square
  33. for hen=1,4 do
  34.   -- put 4 blocks in the ground
  35.   for i=1,4 do
  36.     turtle.forward()  -- move to next position
  37.     turtle.placeDown()  -- put a block
  38.   end
  39.  
  40.   turtle.turnRight()  -- turn 90 degrees to the right
  41. end
  42.  
  43. turtle.up() -- move up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement