Advertisement
LeviathanV

Spawn Blazerod Chickens Into Smeltry For BlazingBlood -- Stoneblock3

Nov 28th, 2022 (edited)
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | Gaming | 0 0
  1. while true do
  2. -- Pulls blazerod chickens from an inventory above it and spawns them into the world I use this for making blazing blood in the smeltry in Stoneblock 3
  3. local function spawn(num)
  4.     for i = 1,num do
  5.     turtle.select(1)
  6.     turtle.place()
  7.     end
  8. end
  9.  
  10. local function check()
  11.     if turtle.getItemCount(1) >= 8 then
  12.     spawn(turtle.getItemCount(1)-0)
  13.     else
  14.         turtle.select(1)
  15.         turtle.suckUp()
  16.     end
  17. end
  18.  
  19. local function clean(num)
  20.     if turtle.getItemCount(2) >= 1 then
  21.         for i = 2,16 do
  22.             turtle.select(i)
  23.             turtle.drop()
  24.         end
  25.     end
  26. end
  27.        
  28. check()
  29. sleep (0.5)
  30. clean(turtle.getItemCount(2)-0)
  31.  
  32. end
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement