Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AM2 Chunk Eater Controller
- -- Save as 'startup' file.
- local f = 0
- local l = 0
- local r = 0
- local b = 0
- local default = 0
- local back = 0
- local wait = 2
- function front()
- while(f<30) do
- redstone.setOutput("back", true)
- sleep(1)
- redstone.setOutput("back", false)
- f = f +1
- sleep(wait)
- end
- f = 0
- end
- function left()
- while(l<4) do
- redstone.setOutput("left", true)
- sleep(1)
- redstone.setOutput("left", false)
- l = l +1
- sleep(wait)
- end
- l = 0
- end
- function right()
- while(r<2) do
- redstone.setOutput("right", true)
- sleep(1)
- redstone.setOutput("right", false)
- r = r +1
- sleep(wait)
- end
- r = 0
- end
- function back()
- while(b<2) do
- redstone.setOutput("front", true)
- sleep(1)
- redstone.setOutput("front", false)
- b = b +1
- sleep(wait)
- end
- b = 0
- end
- while(true) do
- while(back<4) do
- back()
- right()
- back = back + 1
- end
- back = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement