Advertisement
RTS_Dmitriy

PORTAL

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