Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +print("Slot 01: Ender Chest")
- print("Slot 02: Fuel")
- repeat
- print("x-Achse? (Gerade Zahl): ")
- x = tonumber(read()) or 1
- until x % 2 == 0 and x ~= 0
- print("x = " .. x)
- repeat
- print("y-Achse? (Gerade Zahl): ")
- y = tonumber(read()) or 1
- until y % 2 == 0 and y ~= 0
- print("Y = " .. y)
- function refuel()
- while turtle.getFuelLevel() < 64 do
- print("Refueling...")
- turtle.select(2)
- turtle.refuel()
- print(turtle.getFuelLevel() .. "/64")
- end
- end
- function digDown()
- depth = 0
- turtle.digDown()
- while turtle.down() do
- turtle.digDown()
- turtle.dig()
- depth = depth + 1
- end
- return depth
- end
- function digUp(depth)
- turtle.dig()
- while turtle.forward() == false do
- turtle.attack()
- turtle.dig()
- end
- for i=1,depth do
- turtle.digUp()
- turtle.dig()
- while turtle.up() == false do
- turtle.attackUp()
- turtle.digUp()
- end
- end
- end
- function store()
- turtle.digUp()
- turtle.select(1)
- turtle.placeUp()
- for i=16,3,-1 do
- turtle.select(i)
- while turtle.dropUp() == false and turtle.getItemCount(i) > 0 do
- sleep(10)
- end
- end
- turtle.select(1)
- turtle.digUp()
- end
- depth = 0
- y = (y/2)
- for i=1,x do
- for j=1,y do
- refuel()
- if j % 2 == 0 then
- digUp(depth)
- depth = 0
- else
- depth = digDown()
- end
- store()
- if j ~= y then
- turtle.forward()
- turtle.forward()
- else
- turtle.forward()
- end
- end
- if i % 2 == 0 then
- turtle.turnLeft()
- while turtle.forward() == false do
- turtle.attack()
- turtle.dig()
- end
- turtle.turnLeft()
- else
- turtle.turnRight()
- while turtle.forward() == false do
- turtle.attack()
- turtle.dig()
- end
- turtle.turnRight()
- end
- end
- store()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement