Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curslot = 1
- function selnextslot()
- curslot = curslot + 1
- if curslot > 16 then
- print("Keine Bloecke mehr!")
- error()
- end
- turtle.select(curslot)
- end
- function checkblockcount()
- if turtle.getItemCount(curslot) == 0 then
- selnextslot()
- end
- end
- function place()
- for i=1,12 do
- checkblockcount()
- turtle.placeDown()
- turtle.forward()
- turtle.forward()
- end
- end
- function mover()
- place()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- function movel()
- place()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- --------------------------
- -- PROGRAM --
- --------------------------
- turtle.up()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for i=1,3 do
- mover()
- movel()
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=1,22 do
- turtle.forward()
- end
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print("===========================")
- print("Ebene erfolgreich erstellt!")
- print("===========================")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement