Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------Anfang-----------------
- print "HI,ich bin bereit zu schuften!"
- sleep(1)
- print "Wie weit soll ich mich vorkåA4mpfen?"
- l = tonumber(read())
- print "Klaro.Wird gemacht!"
- sleep(1)
- print "Wie weit soll ich in die Breite?"
- b = tonumber(read())
- print "Ai,ai Captain!"
- sleep(1)
- print "Wie hoch soll ich bauen?"
- h = tonumber(read())
- print "Auf gehts!"
- sleep(5)
- right = true
- ------------Funktionen----------------
- function forward()
- while(not turtle.forward()) do
- turtle.dig()
- end
- end
- function up()
- while(not turtle.up()) do
- turtle.digUp()
- end
- end
- function turn()
- if (right) then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- end
- -------------Hauptteil----------------
- for a=1,h do
- for c=1,b do
- for d=1,l-1 do
- forward()
- if turtle.getItemCount(16) ~= 0 then
- turtle.dig()
- turtle.select(1)
- turtle.place()
- for y = 2,16 do
- turtle.select(y)
- turtle.drop()
- end
- turtle.select(1)
- turtle.dig()
- end
- end
- turn()
- if( c ~= b) then
- forward()
- end
- turn()
- right = not right
- end
- if( a ~= h) then
- up()
- end
- right = not right
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement