Advertisement
RTS_Dmitriy

BASE

Oct 10th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --0-do not replace
  2. --1-netherrack
  3.  
  4.  
  5. myArt = {
  6.     {0, 0, 0, 1, 0, 0, 0},
  7.     {0, 0, 1, 1, 1, 1, 0},
  8.     {0, 1, 1, 1, 1, 1, 0},
  9.     {1, 1, 1, 1, 1, 1, 1},
  10.     {0, 1, 1, 1, 1, 1, 0},
  11.     {0, 1, 1, 1, 1, 1, 0},
  12.     {0, 0, 1, 1, 1, 0, 0},
  13.     {0, 0, 0, 1, 0, 0, 0}
  14.     }
  15.  
  16. function buildline(line)
  17.    for i = 1,#line do
  18.      slot=line[i]
  19.      if slot ~= 0 then
  20.          turtle.select(slot)
  21.          turtle.digDown()
  22.          turtle.placeDown()
  23.      end
  24.      turtle.forward()
  25.    end
  26.    for i=1,#line do
  27.      turtle.back()
  28.    end
  29.    turtle.turnRight()
  30.    turtle.forward()
  31.    turtle.turnLeft()
  32. end
  33.  
  34. for i = 1,10 do
  35.   line = myArt[i]
  36.   buildline(line)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement