Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("durchmesser?")
- a = read()
- print("breite?")
- b = read()
- print("hoehe?")
- c = read()
- function hoch()
- for i=1,c do
- turtle.digUp()
- turtle.up()
- end
- end
- function runter()
- for i=1,c do
- turtle.digDown()
- turtle.down()
- end
- end
- function hin()
- for i=1,a do
- turtle.dig()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.up()
- turtle.select(2)
- turtle.place()
- sleep(15)
- turtle.dig()
- turtle.down()
- turtle.select(1)
- turtle.dig()
- turtle.up()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.up()
- turtle.select(2)
- turtle.place()
- sleep(15)
- turtle.dig()
- turtle.down()
- turtle.select(1)
- turtle.dig()
- turtle.up()
- turtle.forward()
- turtle.turnRight()
- end
- function zurueck()
- for i=1,a do
- turtle.dig()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.up()
- turtle.select(2)
- turtle.place()
- sleep(15)
- turtle.dig()
- turtle.down()
- turtle.select(1)
- turtle.dig()
- turtle.up()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(1)
- turtle.place()
- turtle.up()
- turtle.select(2)
- turtle.place()
- sleep(15)
- turtle.dig()
- turtle.down()
- turtle.select(1)
- turtle.dig()
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- end
- function gesammt()
- hoch()
- for i=1,b do
- hin()
- zurueck()
- end
- runter()
- end
- gesammt()
Advertisement
Add Comment
Please, Sign In to add comment