Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farming script for computercraft's turtle
- -- Created by Dimitris Zervas <[email protected]>
- -- IGN: 01ttouch
- -- Fuel on 1st slot
- -- Seed on 2nd slot
- rows = 3
- columns = 5
- turtle.up()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- -- No we are ready to go!
- for i=1, rows, 1 do
- for j=1, columns, 1 do
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- if j ~= columns then
- turtle.forward()
- end
- end
- if i == rows then
- break
- end
- if math.mod(i, 2) then
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement