Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- var
- blocco = ""
- sopra = ""
- pieno = ""
- -- loop
- while true do
- -- riconosce blocco sotto e scrivilo in Blocco
- blocco = turtle.detectDown()
- -- se è badrock torna su
- if blocco == 7 then
- sopra = turtle.detectUp()
- while sopra == 0 do
- turtle.up()
- end
- if not sopra == 0 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft
- end
- -- altrimenti scava
- else then
- turtle.dig()
- turtle.digDown()
- -- e spostati giù
- turtle.down(1)
- end
- pieno = turtle.getItemCount(16)
- if pieno == 64 then
- sopra = turtle.detectUp()
- while sopra == 0 do
- turtle.up()
- end
- if not sopra == 0 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment