Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local sides = require("sides")
- local robot = require("robot")
- rawget(getmetatable(o) or {}, "__ev")
- --[[local g = component.generator
- robot.select(2)
- g.untinsert()
- print(g.co())]]
- rmb = 0
- for i = 200,1,-1 do
- --Check when the Robot has moved 12 Blocks
- if (rmb % 12 == 0) then print("Es ist durch 12 teilbar")
- end
- if (rmb == 175) then robot.turnRight()
- elseif (rmb == 172) then robot.turnRight()
- elseif (rmb == 147) then robot.turnLeft()
- elseif (rmb == 144) then robot.turnLeft()
- elseif (rmb == 119) then robot.turnRight()
- elseif (rmb == 116) then robot.turnRight()
- elseif (rmb == 91) then robot.turnLeft()
- elseif (rmb == 88) then robot.turnLeft()
- elseif (rmb == 63) then robot.turnRight()
- elseif (rmb == 60) then robot.turnRight()
- elseif (rmb == 35) then robot.turnLeft()
- elseif (rmb == 32) then robot.turnLeft()
- elseif (rmb == 7) then robot.turnRight()
- end
- if robot.detect() == true
- then
- robot.swing(sides.front)
- robot.forward(1)
- print(rmb)
- else
- robot.forward(1)
- print(rmb)
- end
- rmb = rmb + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement