Matveyka16

minecraft dog

Nov 9th, 2025 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.50 KB | Gaming | 0 0
  1. function iff (x,y,z)
  2.     if a[x][y][z]==1 then
  3.         turtle.select(1)
  4.     elseif a[x][y][z]==2 then
  5.         turtle.select(2)
  6.     elseif a[x][y][z]==3 then
  7.         turtle.select(3)
  8.     elseif a[x][y][z]==4 then
  9.         turtle.select(4)
  10.     elseif a[x][y][z]==5 then
  11.         turtle.select(5)
  12.     elseif a[x][y][z]==6 then
  13.         turtle.select(6)
  14.     elseif a[x][y][z]==0 then
  15.         turtle.select(16)
  16.     end
  17. end
  18.  
  19. a={
  20.     {
  21.       {0,0,0,0,0,0,0,0} ,
  22.       {0,0,1,1,1,1,0,0} ,
  23.       {0,0,1,1,1,1,0,0} ,
  24.     },
  25.     {
  26.       {0,0,0,0,0,0,0,0} ,
  27.       {0,1,1,1,1,1,1,0} ,
  28.       {0,1,1,1,1,1,0,0} ,
  29.     },
  30.     {
  31.       {0,2,0,0,0,0,0,0} ,
  32.       {1,1,1,1,1,1,1,0} ,
  33.       {0,1,1,1,1,1,0,0} ,
  34.     },
  35.     {
  36.       {0,2,0,0,0,0,0,0} ,
  37.       {0,0,1,1,1,1,0,0} ,
  38.       {0,0,1,3,1,1,0,0} ,
  39.     },
  40.     {
  41.       {0,0,0,0,0,0,0,0} ,
  42.       {0,0,1,1,1,0,0,0} ,
  43.       {0,0,0,0,0,0,0,0} ,
  44.     },
  45.     {
  46.       {0,0,0,0,0,0,0,0} ,
  47.       {0,0,0,0,0,0,0,0} ,
  48.       {0,0,0,0,0,0,0,1} ,
  49.     }
  50. }
  51. turtle.up()
  52. for x = 1, #a do
  53.     for y = 1, #a[x] do
  54.         for z = 1, #a[x][y] do
  55.             iff(x,y,z)
  56.         turtle.placeDown()
  57.         turtle.forward()
  58.         end
  59.         turtle.turnRight()
  60.         turtle.forward()
  61.         turtle.turnRight()
  62.         for z = 1, #a[x][y] do         
  63.         turtle.forward()
  64.         end
  65.         turtle.turnRight()
  66.         turtle.turnRight()
  67.     end
  68.     turtle.turnLeft()
  69.     for y = 1, #a[x] do
  70.         turtle.forward()
  71.     end
  72.     turtle.turnRight()
  73.     turtle.up()
  74. end
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment