Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alt=0
- giri=0
- function scarica()
- print( "Scarico.." )
- for i=2,16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.select(1)
- end
- if(turtle.getItemCount(1)==0) then
- print("Metti Legno di Gomma")
- else
- turtle.select(1)
- while not turtle.compare() do
- turtle.select(1)
- turtle.turnRight()
- giri=giri+1
- if (giri==4) then
- print("Nessun albero rilevato")
- return
- end
- end
- for i=0, 3 do
- select(1)
- while turtle.compare() do
- turtle.dig()
- turtle.up()
- alt=alt+1
- end
- for i=0, alt do
- turtle.down()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- turtle.turnRight()
- turtle.turnRight()
- scarica()
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment