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