Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str = "f"
- function moveRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function moveLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- function arm()
- moveRight()
- turtle.place()
- moveRight()
- turtle.place()
- moveLeft()
- moveLeft()
- end
- function skyprint(letter)
- print("Printing "..letter)
- if letter == "f" then
- arm()
- turtle.place()
- turtle.down()
- turtle.place()
- turtle.down()
- arm()
- turtle.place()
- turtle.down()
- turtle.place()
- turtle.down()
- turtle.place()
- for i = 1,4 do
- turtle.up()
- end
- moveRight()
- moveRight()
- end
- if letter == "e" then
- for i = 1,4 do
- turtle.place()
- turtle.down()
- end
- turtle.place()
- arm()
- turtle.up()
- turtle.up()
- arm()
- turtle.up()
- turtle.up()
- moveRight()
- turtle.place()
- moveRight()
- turtle.place()
- end
- if letter == "d" then
- for i = 1, 4 do
- turtle.place()
- turtle.down()
- end
- turtle.place()
- moveRight()
- turtle.place()
- moveRight()
- for i = 1,3 do
- turtle.up()
- turtle.place()
- end
- moveLeft()
- turtle.up()
- turtle.place()
- moveRight()
- end
- if letter == "c" then
- for i = 1,3 do
- turtle.down()
- turtle.place()
- end
- turtle.down()
- moveRight()
- turtle.place()
- moveRight()
- turtle.place()
- for i = 1,4 do
- turtle.up()
- end
- turtle.place()
- moveLeft()
- turtle.place()
- moveRight()
- end
- if letter == "b" then
- for i = 1,4 do
- turtle.place()
- turtle.down()
- end
- turtle.place()
- moveRight()
- turtle.place()
- turtle.up()
- moveRight()
- turtle.place()
- moveLeft()
- turtle.up()
- turtle.place()
- moveRight()
- turtle.up()
- turtle.place()
- moveLeft()
- turtle.up()
- turtle.place()
- moveRight()
- end
- if letter == "a" then
- moveRight()
- turtle.place()
- turtle.down()
- moveLeft()
- turtle.place()
- moveRight()
- moveRight()
- turtle.place()
- turtle.down()
- turtle.place()
- moveLeft()
- turtle.place()
- moveLeft()
- turtle.place()
- for i = 1,2 do
- turtle.down()
- turtle.place()
- end
- moveRight()
- moveRight()
- turtle.place()
- turtle.up()
- turtle.place()
- for i = 1,3 do
- turtle.up()
- end
- end
- if letter == "h" then
- for i = 1,4 do
- turtle.place()
- turtle.down()
- end
- turtle.place()
- for i = 1,2 do
- turtle.up()
- end
- moveRight()
- turtle.place()
- moveRight()
- for i = 1,2 do
- turtle.up()
- turtle.place()
- end
- for i = 1,4 do
- turtle.down()
- turtle.place()
- end
- for i = 1,4 do
- turtle.up()
- end
- end
- if letter == "i" then
- for i = 1,2 do
- turtle.place()
- moveRight()
- end
- turtle.place()
- moveLeft()
- for i = 1,4 do
- turtle.place()
- turtle.down()
- end
- moveLeft()
- turtle.place()
- for i = 1,2 do
- moveRight()
- turtle.place()
- end
- for i = 1,4 do
- turtle.up()
- end
- end
- end
- t = {}
- for i = 1, #str do
- t[i] = str:sub(i, i)
- end
- --add flying up
- for i = 1, #t do
- skyprint(t[i])
- moveRight()
- moveRight()
- end
- --add flying down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement