Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local slots = {}
- for i = 1,4 do turtle.refuel(1) end
- for i = 1, 4 do turtle.suck() end
- t = turtle
- t.select(1)
- t.up()
- for i = 1,4 do
- t.select(i)
- t.place()
- if t.detect() then
- slots["diskdrive"] = i
- break
- end
- end
- t.select(slots["diskdrive"])
- t.place()
- for i = 1, 4 do
- if i ~= slots["diskdrive"] then
- t.drop()
- if disk.isPresent("front") then
- sleep(2)
- t.suck()
- slots["disk"] = i
- break
- end
- t.suck()
- end
- end
- t.dig()
- print("diskdriver slot = "..slots["diskdrive"])
- print("disk slot = "..slots["disk"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement