Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function suckRow(count)
- if count == nil then
- count = 1
- end
- for i = 1, count do
- if not (i == 1) then
- while not turtle.forward() do
- turtle.dig()
- end
- end
- turtle.suckDown()
- turtle.placeDown()
- end
- end
- function left()
- turtle.turnLeft()
- end
- function right()
- turtle.turnRight()
- end
- function up(count)
- if count == nil then
- count = 1
- end
- for i = 1, count do
- while not turtle.up() do
- turtle.digUp()
- end
- end
- end
- function down(count)
- if count == nil then
- count = 1
- end
- for i = 1, count do
- while not turtle.down() do
- turtle.digDown()
- end
- end
- end
- function forward(count)
- if count == nil then
- count = 1
- end
- for i = 1, count do
- while not turtle.forward() do
- turtle.dig()
- end
- end
- end
- function chop()
- up(count)
- down(count)
- end
- function chopRow(length, height, count)
- for i = 1, count do
- print(i)
- if not (i == 1) then
- print("forward")
- forward(length)
- end
- up(height)
- down(height)
- end
- end
- forward(1)
- chopRow(4, 7, 3)
- left()
- forward(4)
- left()
- chopRow(4, 7, 3)
- right()
- forward(4)
- right()
- chopRow(4, 7, 3)
- forward(2)
- up(1)
- left()
- forward(2)
- left()
- os.sleep(3 * 60)
- for i = 1, 6 do
- suckRow(13)
- left()
- forward(1)
- left()
- suckRow(13)
- right()
- forward(1)
- right()
- end
- suckRow(13)
- right()
- forward(2)
- down(1)
- right()
- forward(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement