Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i=1
- local j=1
- local k=1
- local u=1
- local l=1
- local o=1
- local z=1
- print("Schreibe Anzahl von Recyclern durch 32 geteilt")
- lcoal AnzahlDoppelreihen=read()
- local h=AnzahlDoppelreihen +1
- local g=1
- local t=1
- local q=turtle.getItemCount(1)
- local w=turtle.getItemCount(2)
- local e=turtle.getItemCount(3)
- local r=turtle.getItemCount(4)
- local p=turtle.getItemCount(5)
- local a=turtle.getItemCount(6)
- local s=turtle.getItemCount(7)
- local d=turtle.getItemCount(8)
- local f=turtle.getItemCount(9)
- local y=turtle.getItemCount(10)
- local n=turtle.getItemCount(11)
- local m=turtle.getItemCount(12)
- local x=turtle.getItemCount(13)
- local c=turtle.getItemCount(14)
- local v=turtle.getItemCount(15)
- local b=turtle.getItemCount(16)
- local Faktor=h-1
- local SlotRecycler=0
- local AnzahlRecycler=q+r+s+y
- local AnzahlConduits=w+p+d+n
- local AnzahlFibre=e+a+f+m
- local MultipleSlots=wrong
- function Enough()
- if AnzahlRecycler>32*AnzahlDoppelreihen
- then print("Genug Recycler!")
- else print("Mehr Recycler!")
- print("Turtle wird in 5 Sek. beendet")
- sleep(5)
- shell.exit()
- end
- if AnzahlConduits>32*AnzahlDoppelreihen+1
- then print("Genug Conduits!")
- else print("Mehr Conduits!")
- print("Turtle wird in 5 Sek. beendet")
- sleep(5)
- shell.exit()
- end
- if AnzahlFibre>16*AnzahlDoppelreihen+3
- then print("Genug Fibre")
- else print("Mehr Fibre")
- print("Turtle wird in 5 Sek. beendet")
- sleep(5)
- shell.exit()
- end
- end
- function Recycler()
- repeat
- turtle.forward()
- turtle.turnRight()
- if q>0
- then turtle.select(1)
- elseif r>0
- then turtle.select(4)
- elseif s>0
- then turtle.select(7)
- elseif y>0
- then turtle.select(10)
- else print("FAIL")
- end
- turtle.place()
- turtle.turnLeft()
- i=i+1
- until i > 16
- repeat
- turtle.turnLeft()
- if q>0
- then turtle.select(1)
- elseif r>0
- then turtle.select(4)
- elseif s>0
- then turtle.select(7)
- elseif y>0
- then turtle.select(10)
- else print("FAIL")
- end
- turtle.place()
- turtle.turnRight()
- turtle.back()
- j=j+1
- until j > 16
- end
- function Conduits()
- turtle.up()
- turtle.select(2)
- repeat
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- k=k+1
- until k > 16
- repeat
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.back()
- u=u+1
- until u > 16
- turtle.down()
- end
- function Fibre()
- turtle.up()
- turtle.select(3)
- repeat
- turtle.forward()
- turtle.placeDown()
- o=o+1
- until o > 16
- repeat
- turtle.back()
- l=l+1
- until l > 16
- end
- function AnschlussFibre()
- repeat
- turtle.forward()
- g=g+1
- until g > 16
- turtle.select(12)
- local Block=turtle.compareDown()
- turtle.select(13)
- local Block2=turtle.compareDown()
- if Block==ture
- then turtle.select(14)
- elseif Block2==true
- then turtle.select(13)
- end
- turtle.digDown()
- turtle.down()
- turtle.turnRight()
- turtle.select(12)
- local Block=turtle.compare()
- turtle.select(13)
- local Block2=turtle.compare()
- if Block==ture
- then turtle.select(14)
- elseif Block2==true
- then turtle.select(13)
- end
- turtle.dig()
- turtle.forward()
- turtle.select(12)
- local Block=turtle.compare()
- turtle.select(13)
- local Block2=turtle.compare()
- if Block==ture
- then turtle.select(14)
- elseif Block2==true
- then turtle.select(13)
- end
- turtle.dig()
- turtle.select(3)
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.up()
- turtle.placeDown()
- turtle.turnLeft()
- repeat
- turtle.back()
- t=t+1
- until t > 16
- end
- function AnschlussConduit()
- turtle.up()
- turtle.turnRight()
- turtle.select(2)
- turtle.place()
- turtle.down()
- turtle.turnLeft()
- end
- Enough()
- repeat
- turtle.forward()
- turtle.turnRight()
- AnschlussFibre()
- Recycler()
- Conduits()
- Fibre()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.down()
- z=z+1
- until z > h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement