Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Place EnderStorageChest In Slot 16")
- while turtle.getItemCount(16) == 0 do
- end
- write("Forward:")
- local f = tonumber(read())
- write("Right:")
- local r = tonumber(read())
- write("Up:")
- local u = tonumber(read())
- function dig()
- while turtle.detect() == true do
- turtle.dig()
- end
- end
- function digUp()
- while turtle.detectUp() == true do
- turtle.digUp()
- end
- end
- function forward()
- local keepGoing = true
- while keepGoing do
- if turtle.forward() then
- keepGoing = false
- end
- end
- end
- function up()
- local keepGoing = true
- while keepGoing do
- if turtle.up() then
- keepGoing = false
- end
- end
- end
- function down()
- local keepGoing = true
- while keepGoing do
- if turtle.down() then
- keepGoing = false
- end
- end
- end
- function chest()
- turtle.select(16)
- while turtle.place() == false do
- end
- turtle.select(1)
- turtle.drop()
- dig()
- turtle.transferTo(16)
- end
- function chestUp()
- turtle.select(16)
- while turtle.placeUp() == false do
- end
- turtle.select(1)
- turtle.dropUp()
- digUp()
- turtle.transferTo(16)
- end
- turtle.select(1)
- for i = 1, u do
- for j = 1, r do
- for k = 1, f-1 do
- dig()
- chest()
- forward()
- end
- if j ~= r then
- if j%2 ~= 0 then
- turtle.turnRight()
- dig()
- chest()
- forward()
- turtle.turnRight()
- end
- if j%2 == 0 then
- turtle.turnLeft()
- dig()
- chest()
- forward()
- turtle.turnLeft()
- end
- end
- end
- if r%2 == 0 then
- turtle.turnRight()
- for b = 1, r-1 do
- forward()
- end
- turtle.turnRight()
- end
- if r%2 ~= 0 then
- for b = 1, f-1 do
- turtle.back()
- end
- turtle.turnLeft()
- for b = 1, r-1 do
- forward()
- end
- turtle.turnRight()
- end
- if i ~= u then
- digUp()
- chestUp()
- up()
- end
- end
- for d = 1, u-1 do
- down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement