Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- place = "down"
- dist = 40
- while true do
- id, msg = rednet.receive()
- if msg == "togglelift" then
- if place == "down" then
- for a = 1, dist, 1 do
- turtle.place()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.up()
- end
- else
- for a = 1, dist, 1 do
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.dig()
- end
- end
- if place == "down" then
- place = "up"
- else
- place = "down"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement