Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i=1
- turtle.select(i)
- local x=read()
- local y=read()
- local ix=1
- for k=1,x do
- ix=k
- end
- function notemp()
- local currentItem = turtle.getItemDetail(i)
- if currentItem == nil then
- i=i+1
- turtle.select(i)
- end
- end
- turtle.up()
- for i=1,y do
- for j=1,x do
- notemp()
- turtle.placeDown()
- if j<x then
- turtle.forward()
- end
- end
- if (i%2)==0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement