Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("#######################################")
- textutils.slowPrint("########Bridge builder activated#######")
- textutils.slowPrint("#######################################")
- print("Put ground material in slot 2!")
- write("How long should the bride be?")
- laenge = tonumber(read())
- write("How wide should the Bridge be?")
- breite = tonumber(read())
- write("In what direction should the turtle go?(Right or left)")
- richtung = read()
- if string.lower(richtung) == "right" then
- richtung = "turnRight"
- end
- if string.lower(richtung) == "left" then
- richtung = "turnLeft"
- end
- print("Should a fence be built right and left?(Yes or no)")
- write("(If yes put fence material in slot 3!")
- zaun = read()
- if string.lower(zaun) == "ja" then
- for a = 1, laenge do
- turtle[richtung]()
- turtle.select(2)
- for x = 2, breite do
- turtle.placeDown()
- turtle.attack()
- turtle.dig()
- turtle.forward()
- end
- turtle.placeDown()
- turtle.digUp()
- turtle.attackUp()
- turtle.up()
- turtle.select(3)
- turtle.placeDown()
- for b = 0, 1 do
- turtle[richtung]()
- end
- for c = 2, breite do
- turtle.attack()
- turtle.dig()
- turtle.forward()
- end
- turtle.placeDown()
- turtle[richtung]()
- turtle.attack()
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.attackDown()
- turtle.down()
- end
- end
- if string.lower(zaun) == "nein" then
- for d = 2, laenge do
- turtle[richtung]()
- turtle.select(2)
- for y = 2, breite do
- turtle.placeDown()
- turtle.attack()
- turtle.dig()
- turtle.forward()
- turtle.placeDown()
- end
- for ad = 0,2 do
- turtle[richtung]()
- end
- turtle.attack()
- turtle.dig()
- turtle.forward()
- for af = 0,2 do
- turtle[richtung]()
- end
- for f = 2, breite do
- turtle.attack()
- turtle.dig()
- turtle.forward()
- end
- turtle[richtung]()
- end
- end
- turtle.select(1)
- term.clear()
- term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment