Advertisement
GDragonArcher

craft large chaos

Jun 22nd, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. s = 1 -- slot number
  2. cs = 0 -- number of small shards crafted
  3. num = 0 -- number of items in slot
  4.  
  5. -- craft a single small shard
  6.  
  7. while (true)
  8. do
  9.  
  10.     while (cs < 9)
  11.     do
  12.         while (s <= 11)
  13.         do
  14.             turtle.select(s)
  15.             turtle.suck(1)
  16.             num = turtle.getItemCount(s)
  17.  
  18.             if (num == 1)
  19.             then
  20.  
  21.                 if (s == 3 or s == 7)
  22.                 then
  23.                     s = s + 2
  24.                 else
  25.                     s = s + 1
  26.                 end
  27.  
  28.             else
  29.                 sleep(10)
  30.  
  31.             end
  32.            
  33.         end
  34.  
  35.         turtle.craft(1)
  36.         turtle.dropDown(1)
  37.         cs = cs + 1
  38.         s = 1
  39.     end
  40.  
  41.     while (s <= 11)
  42.         do
  43.             turtle.select(s)
  44.             turtle.suckDown(1)
  45.  
  46.             if (s == 3 or s == 7)
  47.             then
  48.              s = s + 2
  49.              else
  50.                 s = s + 1
  51.             end
  52.            
  53.         end
  54.  
  55.         turtle.craft(1)
  56.         turtle.dropUp(1)
  57.         s = 1
  58.         cs = 0
  59.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement