Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Kopej(sirka)
- for a=1,sirka,1 do
- turtle.dig()
- turtle.forward()
- end
- end
- function PopojedVpred(posun)
- for a=1,posun,1 do
- turtle.dig()
- turtle.forward()
- end
- end
- function PopojedDolu(posundolu)
- for a=1,posundolu,1 do
- turtle.down()
- end
- end
- function Rada()
- -- 1 rada
- Kopej(20)
- turtle.turnRight()
- turtle.turnRight()
- turtle.digUp()
- turtle.up()
- -- 2 rada
- Kopej(20)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.digUp()
- turtle.up()
- -- 3 rada
- Kopej(20)
- turtle.turnRight()
- turtle.turnRight()
- turtle.digUp()
- turtle.up()
- -- 4 rada
- Kopej(20)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.digUp()
- turtle.up()
- -- 5 rada
- Kopej(20)
- turtle.turnRight()
- turtle.turnRight()
- PopojedVpred(20)
- PopojedDolu(5)
- turtle.turnLeft()
- end
- --start programu
- --pred spustenim programu nezapomente doplnit FUEL (Coal) pomoci prikazu refuel
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- Rada()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement