Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------
- -- Turtle SmoothCraft2-- (c) Muzze77 ----------------
- -----------------------------------------------------
- anz = 0
- schlaf = 0.04
- suckTime = schlaf
- count = 64
- side = "back"
- function cut()
- sleep(schlaf)
- shell.run("clear")
- sleep(schlaf)
- end
- ----------------------------------------
- function suck()
- turtle.select(num)
- sleep(suckTime)
- turtle.suckDown()
- sleep(suckTime)
- m = turtle.getItemCount(num)
- sleep(suckTime)
- if m == 0 then
- start()
- else
- m1 = m - 1
- turtle.drop(m1)
- sleep(0.2)
- anz = anz+1
- end
- end
- function pull()
- turtle.select(num)
- sleep(suckTime)
- turtle.drop()
- end
- ----------------------------------------
- function doIt()
- turtle.select(16)
- sleep(suckTime)
- turtle.craft()
- sleep(suckTime)
- turtle.dropUp()
- print(" Gecraftete Items : " .. anz)
- cut()
- end
- while true do
- while rs.getInput(side) == true do
- function start()
- num = 2
- suck()
- num = 3
- suck()
- num = 5
- suck()
- num = 6
- suck()
- num = 4
- pull()
- num = 7
- pull()
- num = 8
- pull()
- num = 9
- pull()
- num = 10
- pull()
- num = 11
- pull()
- num = 12
- pull()
- num = 13
- pull()
- num = 14
- pull()
- num = 15
- pull()
- num = 16
- pull()
- doIt()
- end
- sleep(0.03)
- start()
- end
- print("Kein Signal")
- cut()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement