Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RightMine()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- function LeftMine()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function RightPlant()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- turtle.turnRight()
- end
- function LeftPlant()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- end
- function Mine()
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- for i=1, 9 do
- for i=1, 8 do
- for j=0,7 do
- turtle.dig()
- turtle.forward()
- end
- if i < 8 then
- if i % 2 == 0 then
- LeftMine()
- else
- RightMine()
- end
- end
- end
- if i < 9 then
- turtle.digUp()
- turtle.up()
- turtle.turnRight()
- end
- end
- MineHome()
- end
- function MineHome()
- turtle.forward()
- for i=0, 8 do
- if i < 8 then
- turtle.digDown()
- turtle.down()
- else
- turtle.down()
- end
- end
- turtle.turnRight()
- for i=0, 6 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.back()
- Plant()
- end
- function Plant()
- for i=1, 8 do
- for j=0,7 do
- if turtle.getItemCount() < 3 then
- turtle.select(turtle.getSelectedSlot() + 1)
- end
- turtle.back()
- turtle.place()
- end
- if i < 8 then
- if i % 2 == 0 then
- LeftPlant()
- else
- RightPlant()
- end
- end
- end
- turtle.back()
- turtle.place()
- PlantHome()
- end
- function PlantHome()
- turtle.turnRight()
- for i=0, 6 do
- turtle.back()
- end
- turtle.turnRight()
- Transfer()
- end
- function Transfer()
- for i=9, 16 do
- turtle.select(i)
- turtle.drop(turtle.getItemCount() - 1)
- end
- turtle.select(1)
- turtle.turnRight()
- turtle.turnRight()
- end
- while true do
- if not turtle.compare() then
- Mine()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement