Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("vor?")
- local x=io.read()
- print("rechts?")
- local y=io.read()
- local invbl=0
- local benbl=x*y
- local slot=1
- local flag=0
- for i=1,16 do
- invbl=invbl+turtle.getItemCount(i)
- end
- if invbl >= benbl then
- turtle.forward()
- for i=1,y do
- for j=1,x do
- turtle.select(slot)
- turtle.placeDown()
- if turtle.getItemCount(slot) < 1 then
- slot=slot+1
- end
- turtle.forward()
- end
- turtle.placeDown()
- if turtle.getItemCount(slot) < 1 then
- slot=slot+1
- end
- if flag==0 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- flag=1
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- flag=0
- end
- end
- else
- print("zu wening blรถcke")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement