Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- local isBlock
- local data
- local toggle = true
- local first = true
- function refuel()
- t.select(1)
- t.refuel()
- t.select(2)
- end
- function purge()
- for slot = 3, 16, 1 do
- t.select(slot)
- t.dropDown()
- end
- t.select(2)
- end
- while true do
- for i = 0, 7, 1 do
- if (not first) then
- purge()
- if (toggle) then
- t.turnRight()
- t.forward()
- t.turnRight()
- toggle = false
- else
- t.turnLeft()
- t.forward()
- t.turnLeft()
- toggle = true
- end
- end
- for i = 0, 7, 1 do
- isBlock, data = t.inspectDown()
- if (isBlock) then
- if (data['state']['age'] == 7) then
- t.digDown()
- t.suckDown()
- t.placeDown('minecraft:carrot')
- end
- end
- t.forward()
- refuel()
- end
- first = false
- end
- t.turnRight()
- for i = 0, 6, 1 do
- t.forward()
- end
- t.turnRight()
- end
Add Comment
Please, Sign In to add comment