Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --1 Chunk Manual
- function fuelcheck(y)
- local level = turtle.getFuelLevel()
- if (level < 256*y)
- then
- write("There is not enough fuel")
- os.shutdown()
- else
- write("There will be "..level - 256*y.." fuel left")
- end
- end
- function layer()
- turtle.digDown()
- turtle.down()
- for i = 1, 16, 1 do
- for e = 1, 15, 1 do
- turtle.dig()
- turtle.forward()
- end
- if(i ~= 16)
- then
- if(i % 2 == 0)
- then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- else
- turtle.turnRight()
- end
- end
- end
- --Change this for normal deposit once
- --I have acquired ender tech
- function chestdeposit()
- turtle.select(1)
- turtle.placeUp()
- local s = 1
- for i = 1, 15, 1 do
- s = s + 1
- turtle.select(s)
- turtle.dropUp()
- end
- end
- function deposit()
- turtle.placeUp()
- local s = 2
- for i = 1, 13, 1 do
- s = s + 1
- turtle.select(s)
- turtle.dropUp()
- end
- turtle.select(1)
- turtle.digUp()
- end
- function lavaFuel()
- turtle.select(2)
- turtle.placeUp()
- turtle.select(3)
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- sleep()
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- turtle.select(2)
- turtle.digUp()
- turtle.select(1)
- end
- function startPosition()
- turtle.turnLeft()
- for i = 1, 15, 1 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function chunk(y)
- for i = 1, y, 1 do
- layer()
- chestdeposit()
- end
- end
- write("How Many Layers to Remove?")
- local y = read()
- fuelcheck(y)
- print("Removing "..y.." Layers ...")
- chunk(y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement