Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- 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
- local function spawn(num)
- for i = 1,num do
- turtle.select(1)
- turtle.place()
- end
- end
- local function check()
- if turtle.getItemCount(1) >= 8 then
- spawn(turtle.getItemCount(1)-0)
- else
- turtle.select(1)
- turtle.suckUp()
- end
- end
- local function clean(num)
- if turtle.getItemCount(2) >= 1 then
- for i = 2,16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- end
- check()
- sleep (0.5)
- clean(turtle.getItemCount(2)-0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement