Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = {...}
- if #tArgs ~= 3 then
- print("You must enter 3 Colors!")
- return
- end
- print("Startup Sequence")
- --Do Stuff
- function detect(direction)
- if direction == "fwd" then
- if turtle.detect() then
- turtle.dig()
- end
- elseif direction == "up" then
- if turtle.detectUp() then
- turtle.digUp()
- end
- end
- end
- while true do
- shell.run("refuel")
- turtle.turnRight()
- turtle.select(3)
- detect("fwd")
- turtle.place()
- detect("up")
- turtle.up()
- turtle.select(2)
- detect("fwd")
- turtle.place()
- p = peripheral.wrap("front")
- p.setColors(colors[tArgs[1]],colors[tArgs[2]],colors[tArgs[3]])
- turtle.down()
- turtle.turnLeft()
- detect("fwd")
- turtle.forward()
- turtle.digDown()
- turtle.turnRight()
- turtle.select(4)
- detect("fwd")
- turtle.place()
- turtle.turnLeft()
- for i = 1,11 do
- detect("fwd")
- turtle.forward()
- turtle.digDown()
- end
- end
Add Comment
Please, Sign In to add comment