Advertisement
Alexandex100

PORTAL

Oct 17th, 2024 (edited)
41
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.     {2, 0, 0, 0, 0, 0, 2, 0, 0, 1, 3, 1, 3, 1},
  13.     {2, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 4, 1, 1},
  14.     {2, 0, 0, 0 ,0, 0, 2, 0, 0, 1, 3, 1, 3, 1},
  15.     {2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1},
  16.     {1, 1},
  17.     {0, 1, 1},
  18.     {0, 0, 1, 1}
  19. }
  20.  
  21. function buildline(line)
  22.    for i = 1,#line do
  23.      slot=line[i]
  24.      if slot ~= 0 then
  25.          turtle.select(slot)
  26.          
  27.          turtle.placeDown()
  28.      end
  29.      turtle.up()
  30.    end
  31.    turtle.forward()
  32.    for i=1,#line do
  33.      turtle.down()
  34.    end
  35.  
  36. end
  37.  
  38. for i = 1,11 do
  39.   line = myArt[i]
  40.   buildline(line)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement