Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local run = true
- local ertek = 0
- local circle = 0
- local vege = 0
- function dig()
- turtle.forward()
- end
- function input()
- if ertek == 0 then
- print("mennyit menjek elore")
- ertek = read()
- ertek = ertek + 0
- end
- if circle == 0 then
- print("hany korben?")
- circle = read()
- circle = circle + 0
- end
- end
- end
- function main()
- for i = 1, ertek do
- dig()
- if i == ertek then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- for j = 1, ertek do
- turtle.place()
- turtle.up()
- turtle.forward()
- if j == ertek then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement