Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run('clear')
- print ("Wie lang soll das Feld sein?")
- local x=io.read()
- print ("Wie breit soll das Feld sein?")
- local y=io.read()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- for i = 1,x do
- turtle.forward()
- end
- turtle.back()
- turtle.place()
- turtle.turnRight()
- for i = -1,y do
- turtle.forward()
- end
- turtle.back()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- for i = 1,x do
- turtle.forward()
- end
- turtle.back()
- turtle.place()
- turtle.turnRight()
- for i=0,y do
- turtle.forward()
- end
- turtle.turnRight()
- print("Fertig! :D")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement