Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- got 2 log in slot 1
- turtle.select(1)
- turtle.craft(2)
- local z = 0
- while turtle.detect() do -- This makes sure that it's empty in front of the turtle.
- turtle.turnRight()
- if z ~= 4 then z = z + 1 end
- if z == 4 then
- turtle.select(16)
- turtle.dig()
- turtle.drop()
- turtle.select(1)
- end
- end
- local x = 0
- for i = 1, 8 do
- x = x + 1
- if x == 4 or x == 8 or x == 6 then x = x + 1 end
- turtle.select(1) -- Instead of turtle.drop() and turtle.suck() we use turtle.place() and turtle.dig()
- turtle.place()
- turtle.select(x)
- turtle.dig()
- end
- turtle.select(1)
- if not turtle.craft() then
- print("Failed crafting!")
- else
- print("Successful crafting!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement