Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local radius = 4
- function farm()
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- end
- function emptyInv()
- local suc, chest = turtle.inspect()
- if chest.name == "minecraft:chest" or chest.name == "minecraft:trapped_chest" then
- print("chest found")
- for i=1,15 do
- turtle.select(i)
- turtle.drop(turtle.getItemCount(i))
- end
- end
- end
- function farming()
- local rad = radius
- print("start")
- for i=1,radius do
- print("ring " ..i)
- print(rad*2+1)
- for i=1,4 do
- local bl = 1
- for i=1,rad*2+1 do
- term.write(bl .." ")
- bl = bl+1
- farm()
- end
- print("")
- if rad < 4 then
- --ABSOLUTLY NO IDEA WHY THIS IS NECASSARY
- turtle.back()
- end
- if i == 4 then
- print("compl")
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- else
- turtle.turnLeft()
- end
- end
- rad = rad - 1
- end
- for i=1,radius-1 do
- turtle.back()
- end
- turtle.turnRight()
- while turtle.detect() == false do
- turtle.forward()
- end
- emptyInv()
- turtle.turnLeft()
- end
- farming()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement